PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Capped cylinder shape with endpoints \( a, b \in \mathbb{R}^3 \) and radius \( r \). More...
#include <Primitive.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
CappedCylinder ()=default | |
Default constructor. | |
CappedCylinder (Vec3< ScalarType > const &a_, Vec3< ScalarType > const &b_, ScalarType r_) | |
Construct a new Capped Cylinder object. | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
Vec3< ScalarType > | a {TScalar(-1), TScalar(0), TScalar(0)} |
Endpoint a of the capped cylinder. | |
Vec3< ScalarType > | b {TScalar(1), TScalar(0), TScalar(0)} |
Endpoint b of the capped cylinder. | |
ScalarType | r {TScalar(0.2)} |
Radius of the capped cylinder. | |
Capped cylinder shape with endpoints \( a, b \in \mathbb{R}^3 \) and radius \( r \).
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Capped Cylinder object.
a_ | Endpoint a of the capped cylinder |
b_ | Endpoint b of the capped cylinder |
r_ | Radius of the capped cylinder |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |