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