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