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