PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
#include <Primitive.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
Pyramid ()=default | |
Default constructor. | |
Pyramid (ScalarType h_) | |
Construct a new Pyramid object. | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > p) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
ScalarType | h {TScalar(1)} |
Height of the pyramid. | |
Pyramid shape.
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Pyramid object.
h_ | Height of the pyramid |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |