PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Capsule shape with height \( h \) and radius \( r \). More...
#include <Primitive.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
VerticalCapsule ()=default | |
Default constructor. | |
VerticalCapsule (ScalarType h_, ScalarType r_) | |
Construct a new Vertical Capsule 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 capsule. | |
ScalarType | r {TScalar(0.2)} |
Radius of the capsule. | |
Capsule shape with height \( h \) and radius \( r \).
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Vertical Capsule object.
h_ | Height of the capsule |
r_ | Radius of the capsule |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |