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