PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Hexagonal prism shape. More...
#include <Primitive.h>
Public Types | |
using | ScalarType = TScalar |
Scalar type. | |
Public Member Functions | |
HexagonalPrism ()=default | |
Default constructor. | |
HexagonalPrism (Vec2< ScalarType > const &h_) | |
Construct a new Hexagonal Prism object. | |
PBAT_HOST_DEVICE ScalarType | Eval (Vec3< ScalarType > p) const |
Evaluate the signed distance function at a point. | |
Public Attributes | |
Vec2< ScalarType > | h |
h[0]: radius of the hexagon, h[1]: half height of the prism | |
Hexagonal prism shape.
TScalar | Scalar type |
|
inlineexplicit |
Construct a new Hexagonal Prism object.
h_ | h[0]: radius of the hexagon, h[1]: half height of the prism |
|
inline |
Evaluate the signed distance function at a point.
p | Point in 3D space |
Vec2<ScalarType> pbat::geometry::sdf::HexagonalPrism< TScalar >::h |
h[0]: radius of the hexagon, h[1]: half height of the prism