PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Infinite cylinder. More...
#include <Primitive.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
InfiniteCylinder ()=default | |
Default constructor. | |
InfiniteCylinder (Vec3< ScalarType > const &c_) | |
Construct a new Infinite Cylinder object. | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
Vec3< ScalarType > | c |
Center of the cylinder (on the axis) in c(0), c(1) and radius in c(2) | |
Infinite cylinder.
TScalar | Scalar type |
|
inlineexplicit |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |
Vec3<ScalarType> pbat::geometry::sdf::InfiniteCylinder< TScalar >::c |