|
|
| WedgeSDF ()=default |
| | Default constructor. Constructs a wedge with its tip at the origin and an opening of 60 degrees.
|
| |
| | WedgeSDF (const Vec3T< T > &a_tip, const T a_angle) |
| | Full constructor.
|
| |
|
| WedgeSDF (const WedgeSDF &)=default |
| | Copy constructor.
|
| |
|
| WedgeSDF (WedgeSDF &&)=default |
| | Move constructor.
|
| |
| WedgeSDF & | operator= (const WedgeSDF &)=default |
| | Copy assignment.
|
| |
| WedgeSDF & | operator= (WedgeSDF &&)=default |
| | Move assignment.
|
| |
| const Vec3T< T > & | getTip () const noexcept |
| | Get the tip, a point on the edge.
|
| |
| const T & | getAngle () const noexcept |
| | Get the opening angle, in degrees.
|
| |
| Vec3T< T > | getFaceNormal () const noexcept |
| | The unit outward normal of the face on the +x side; the other face's is mirrored in x.
|
| |
| T | signedDistance (const Vec3T< T > &a_point) const noexcept |
| | Signed distance function for the wedge.
|
| |
| uint32_t | getNumParts () const noexcept |
| | How many parts the shape has (see hasParts): 2.
|
| |
| uint32_t | closestPart (const Vec3T< T > &a_point) const noexcept |
| | The part whose term decides the value at a point (see hasParts): 0 the face on the -x side of the tip, 1 the one on the +x side; the tip edge goes to the side the point is on.
|
| |
| BoundingVolumes::AABBT< T > | computeBoundingVolume () const noexcept |
| | The shape's axis-aligned bounding box: unbounded but above the tip.
|
| |
template<class T>
class EBGeometry::WedgeSDF< T >
Signed distance field for an infinite wedge: a knife edge.
The wedge's edge runs along z through the tip, and the wedge points toward +y: it is the space below two planes through the edge, each at half the opening angle from -y. It is unbounded along z, and downward and sideways from the edge. The distance is exact: inside, that to the nearer plane; outside, to the nearer face, or to the edge where the point is beyond both faces. Round the edge with Offset of a wedge whose tip is set back. Turn it with Rotate. By default the tip is at the origin and the opening is 60 degrees.
- Template Parameters
-
| T | Floating-point precision. |