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 | |
Cone ()=default | |
Default constructor. | |
Cone (Vec2< ScalarType > const &sc_, ScalarType h_) | |
Construct a new Cone object. | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
Vec2< ScalarType > | sc {TScalar(0.5), TScalar(0.5)} |
sin/cos of the angle | |
ScalarType | h {TScalar(1)} |
Height of the cone. | |
Cone shape.
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Cone object.
sc_ | sin/cos of the angle |
h_ | Height of the cone |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |