PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Axis-aligned box centered in \( (0,0,0) \) with half extents \( \text{he} \in \mathbb{R}^3 \). More...
#include <Primitive.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
Box ()=default | |
Default constructor. | |
Box (Vec3< ScalarType > const &he_) | |
Construct a new Box object. | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > const &p) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
Vec3< ScalarType > | he |
Half extents of the box along each axis. | |
Axis-aligned box centered in \( (0,0,0) \) with half extents \( \text{he} \in \mathbb{R}^3 \).
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Box object.
he_ | Half extents of the box along each axis |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |
Vec3<ScalarType> pbat::geometry::sdf::Box< TScalar >::he |
Half extents of the box along each axis.