|
AGXDynamics
2.31.1.0
|
#include <TerrainUtils.h>
Inheritance diagram for agxModel::VolumeOverlap:Public Types | |
| enum | Type { TOTAL = 0, COMPRESSED, MOVED } |
Public Member Functions | |
| VolumeOverlap () | |
| Real | at (size_t i) |
| void | clamp (const Vec3T &min, const Vec3T &max) |
| Clamp a vector between a lower and upper bound (per component). More... | |
| const Vec3T | cross (const Vec3T &rhs) const |
| Cross product method. More... | |
| Real | distance (const Vec3T &v2) const |
| Distance to another vector. More... | |
| Real | distance2 (const Vec3T &v2) const |
| Squared distance to another vector. More... | |
| bool | equalsZero () const |
| Vec3T | getPerpendicularUnitVector () const |
| Vec3T | getPerpendicularUnitVector (const Vec3T &v2) const |
| Return a unit vector perpendicular to this and another vector. More... | |
| bool | isFinite () const |
| bool | isNaN () const |
| bool | isValid () const |
| Real | length () const |
| Length of the vector = sqrt( vec . More... | |
| Real | length2 () const |
| Length squared of the vector = vec . More... | |
| Real | maxComponent () const |
| size_t | maxElement () const |
| Real | minComponent () const |
| size_t | minElement () const |
| Vec3T | normal () const |
| Real | normalize () |
| Normalize the vector so that it has length unity. More... | |
| bool | operator!= (const Vec3T &v) const |
| In-equality test. More... | |
| Real | operator* (const Vec3T &rhs) const |
| Dot product. More... | |
| const Vec3T | operator* (Realrhs) const |
| Multiply by scalar. More... | |
| Vec3T & | operator*= (Realrhs) |
| Unary multiply by scalar. More... | |
| const Vec3T | operator+ (const Vec3T &rhs) const |
| Binary vector add. More... | |
| const Vec3T | operator+ (const Real &rhs) const |
| Binary vector add. More... | |
| Vec3T & | operator+= (const Vec3T &rhs) |
| Unary vector add. More... | |
| Vec3T & | operator+= (const Real &rhs) |
| Unary vector add. More... | |
| const Vec3T | operator- (const Vec3T &rhs) const |
| Binary vector subtract. More... | |
| const Vec3T | operator- (const Real &rhs) const |
| Binary vector subtract. More... | |
| const Vec3T | operator- () const |
| Negation operator. More... | |
| Vec3T & | operator-= (const Vec3T &rhs) |
| Unary vector subtract. More... | |
| Vec3T & | operator-= (const Real &rhs) |
| Unary vector subtract. More... | |
| const Vec3T | operator/ (Realrhs) const |
| Divide by scalar. More... | |
| Vec3T & | operator/= (Realrhs) |
| Unary divide by scalar. More... | |
| bool | operator== (const Vec3T &v) const |
| Equality test. More... | |
| Real & | operator[] (size_t i) |
| const Real & | operator[] (size_t i) const |
| const Vec3T | operator^ (const Vec3T &rhs) const |
| Cross product operator. More... | |
| Real * | ptr () |
| const Real * | ptr () const |
| void | set (Realx, Realy, Realz) |
| void | set (Realvalue) |
| void | set (const Vec3T &rhs) |
| void | set (Realval, size_t i) |
| Set the value of element i. Mainly for accessing vec3 in Lua. More... | |
| Real | setLength (Real newLength) |
| Scale the vector so that is has the specified length. More... | |
| void | store3 (Real *storage) const |
| Store the tree components to the given memory area. More... | |
| Real & | x () |
| Real | x () const |
| Real & | y () |
| Real | y () const |
| Real & | z () |
| Real | z () const |
Static Public Member Functions | |
| static Vec3T | AXIS (size_t i) |
| static Vec3T | componentMax (const Vec3T &v1, const Vec3T &v2) |
| Creates a new vector where each component is the maximum of this and the other vector. More... | |
| static Vec3T | componentMin (const Vec3T &v1, const Vec3T &v2) |
| Creates a new vector where each component is the minimum of this and the other vector. More... | |
| static Vec3T | div (const Vec3T &lhs, const Vec3T &rhs) |
| Element-wise-division. More... | |
| static Vec3T | mul (const Vec3T &lhs, const Vec3T &rhs) |
| Element-wise-multiplication. More... | |
| static Vec3T | random (Realmin=Real(0), Realmax=Real(1)) |
| static Vec3T | random (const Vec3T< Real > &min, const Vec3T< Real > &max) |
| static Vec3T | X_AXIS () |
| static Vec3T | Y_AXIS () |
| static Vec3T | Z_AXIS () |
Protected Attributes | |
| Real | m_data [4] |
Definition at line 445 of file TerrainUtils.h.
| Enumerator | |
|---|---|
| TOTAL | |
| COMPRESSED | |
| MOVED | |
Definition at line 449 of file TerrainUtils.h.
| agxModel::VolumeOverlap::VolumeOverlap | ( | ) |
|
inherited |
|
staticinherited |
| i | The axis to choose. 0, 1 or 2. |
Clamp a vector between a lower and upper bound (per component).
|
staticinherited |
Creates a new vector where each component is the maximum of this and the other vector.
Referenced by agxCollide::WireShape::calculateBound(), agxCollide::Capsule::calculateBound(), agxCollide::Line::calculateBound(), and agxCollide::BoundingAABB::expand().
|
staticinherited |
Creates a new vector where each component is the minimum of this and the other vector.
Referenced by agxCollide::WireShape::calculateBound(), agxCollide::Capsule::calculateBound(), agxCollide::Line::calculateBound(), and agxCollide::BoundingAABB::expand().
|
inherited |
Cross product method.
|
inherited |
Distance to another vector.
|
inherited |
Squared distance to another vector.
|
staticinherited |
Element-wise-division.
|
inherited |
|
inherited |
|
inherited |
Return a unit vector perpendicular to this and another vector.
If the two vectors are parallel, an arbitrary perpendicular vector will be chosen.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Length of the vector = sqrt( vec .
vec )
|
inherited |
Length squared of the vector = vec .
vec
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Element-wise-multiplication.
Referenced by agxSDK::calculateBoxOffset().
|
inherited |
|
inherited |
Normalize the vector so that it has length unity.
|
inherited |
In-equality test.
|
inherited |
Dot product.
|
inherited |
Multiply by scalar.
|
inherited |
Unary multiply by scalar.
|
inherited |
Binary vector add.
|
inherited |
Binary vector add.
|
inherited |
Unary vector add.
Slightly more efficient because no temporary intermediate object.
|
inherited |
Unary vector add.
Slightly more efficient because no temporary intermediate object.
|
inherited |
Binary vector subtract.
|
inherited |
Binary vector subtract.
|
inherited |
Negation operator.
Returns the negative of the Vec3T.
|
inherited |
Unary vector subtract.
|
inherited |
Unary vector subtract.
|
inherited |
Divide by scalar.
|
inherited |
Unary divide by scalar.
|
inherited |
Equality test.
|
inherited |
|
inherited |
|
inherited |
Cross product operator.
|
inherited |
|
inherited |
|
staticinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Set the value of element i. Mainly for accessing vec3 in Lua.
|
inherited |
Scale the vector so that is has the specified length.
|
inherited |
Store the tree components to the given memory area.
|
inherited |
Referenced by agx::Point2D::Point2D().
|
inherited |
|
staticinherited |
|
inherited |
Referenced by agx::Point2D::Point2D().
|
inherited |
|
staticinherited |
Referenced by agxModel::Deformable1DRadiusGeometryFactory< T >::createGeometry().
|
inherited |
Referenced by agx::Point2D::Point2D(), and agx::Point2D::yp().
|
inherited |
|
staticinherited |
Referenced by agxModel::Deformable1DRadiusGeometryFactory< T >::createGeometry(), and agxRender::WireRenderProxy::SegmentDef::getTransform().
|
protectedinherited |
Definition at line 290 of file Vec3Template.h.