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