|
AGXDynamics
2.31.1.0
|
#include <LookupTables.h>
Inheritance diagram for agx::Point2D:Public Types | |
| typedef Real | Type |
Public Member Functions | |
| Point2D () | |
| Point2D (agx::Real xxx, agx::Real yyy, agx::Real dy) | |
| Point2D (agx::Vec3 point) | |
| 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... | |
| Real | distance2 (const Vec3T &v2) const |
| Real | distance2 (const Vec3T &v2) const |
| Real | distance2 (const Vec3T &v2) const |
| Real | distance2 (const Vec3T &v2) const |
| 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* (Real rhs) const |
| Multiply by scalar. More... | |
| Vec3T & | operator*= (Real rhs) |
| 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/ (Real rhs) const |
| Divide by scalar. More... | |
| Vec3T & | operator/= (Real rhs) |
| 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 (Real x, Real y, Real z) |
| void | set (Real value) |
| void | set (const Vec3T &rhs) |
| void | set (Real val, 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 |
| agx::Real | yp () |
| 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 (Real min=Real(0), Real max=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 126 of file LookupTables.h.
|
inherited |
Definition at line 48 of file Vec3Template.h.
|
inline |
Definition at line 129 of file LookupTables.h.
Definition at line 130 of file LookupTables.h.
|
inline |
Definition at line 136 of file LookupTables.h.
References agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
|
inherited |
Definition at line 803 of file Vec3Template.h.
|
staticinherited |
| i | The axis to choose. 0, 1 or 2. |
Definition at line 795 of file Vec3Template.h.
Clamp a vector between a lower and upper bound (per component).
Definition at line 439 of file Vec3Template.h.
References agx::clamp(), and agx::Vec3T< T >::m_data.
|
staticinherited |
Creates a new vector where each component is the maximum of this and the other vector.
Definition at line 391 of file Vec3Template.h.
References agx::max().
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.
Definition at line 385 of file Vec3Template.h.
References agx::min().
Referenced by agxCollide::WireShape::calculateBound(), agxCollide::Capsule::calculateBound(), agxCollide::Line::calculateBound(), and agxCollide::BoundingAABB::expand().
Cross product method.
Definition at line 567 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Distance to another vector.
Definition at line 701 of file Vec3Template.h.
References agx::Vec3T< T >::distance2().
|
inherited |
Squared distance to another vector.
Definition at line 895 of file Vec3Template.h.
References agx::Vec3T< T >::length2(), and agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 902 of file Vec3Template.h.
References agx::Vec3T< T >::length2(), agx::Vec3T< T >::m_data, agx::max(), and agx::min().
|
inherited |
Definition at line 912 of file Vec3Template.h.
References agx::Vec3T< T >::length2(), agx::Vec3T< T >::m_data, agx::max(), and agx::min().
|
inherited |
Definition at line 922 of file Vec3Template.h.
References agx::Vec3T< T >::length2(), agx::Vec3T< T >::m_data, agx::max(), and agx::min().
|
inherited |
Definition at line 932 of file Vec3Template.h.
References agx::Vec3T< T >::length2(), agx::Vec3T< T >::m_data, agx::max(), and agx::min().
|
staticinherited |
Element-wise-division.
Definition at line 582 of file Vec3Template.h.
|
inherited |
Definition at line 447 of file Vec3Template.h.
References agx::equalsZero(), and agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 738 of file Vec3Template.h.
References agx::absolute(), agx::Vec3T< T >::m_data, agx::Vec3T< T >::normalize(), and agx::Vec3T< T >::set().
|
inherited |
Return a unit vector perpendicular to this and another vector.
If the two vectors are parallel, an arbitrary perpendicular vector will be chosen.
Definition at line 765 of file Vec3Template.h.
References agx::Vec3T< T >::equalsZero(), agx::Vec3T< T >::getPerpendicularUnitVector(), and agx::Vec3T< T >::normalize().
|
inherited |
Definition at line 547 of file Vec3Template.h.
References agx::isFinite(), and agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 541 of file Vec3Template.h.
References agx::isNaN(), and agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 535 of file Vec3Template.h.
References agx::Vec3T< T >::isNaN().
|
inherited |
Length of the vector = sqrt( vec .
vec )
Definition at line 689 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Length squared of the vector = vec .
vec
Definition at line 695 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 403 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::max().
|
inherited |
Definition at line 424 of file Vec3Template.h.
References agx::absolute(), and agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 397 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::min().
|
inherited |
Definition at line 409 of file Vec3Template.h.
References agx::absolute(), and agx::Vec3T< T >::m_data.
|
staticinherited |
Element-wise-multiplication.
Definition at line 575 of file Vec3Template.h.
Referenced by agxSDK::calculateBoxOffset().
|
inherited |
Definition at line 728 of file Vec3Template.h.
References agx::Vec3T< T >::normal(), and agx::Vec3T< T >::normalize().
|
inherited |
Normalize the vector so that it has length unity.
Definition at line 707 of file Vec3Template.h.
References agx::Vec3T< T >::setLength().
|
inherited |
In-equality test.
Definition at line 378 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
|
inherited |
Multiply by scalar.
Definition at line 591 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Unary multiply by scalar.
Definition at line 598 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
Binary vector add.
Definition at line 623 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::Vec3T< T >::Vec3T().
|
inherited |
Binary vector add.
Definition at line 653 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::Vec3T< T >::Vec3T().
Unary vector add.
Slightly more efficient because no temporary intermediate object.
Definition at line 629 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Unary vector add.
Slightly more efficient because no temporary intermediate object.
Definition at line 659 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
Binary vector subtract.
Definition at line 638 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::Vec3T< T >::Vec3T().
|
inherited |
Binary vector subtract.
Definition at line 668 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::Vec3T< T >::Vec3T().
|
inherited |
Negation operator.
Returns the negative of the Vec3T.
Definition at line 683 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::Vec3T< T >::Vec3T().
Unary vector subtract.
Definition at line 644 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Unary vector subtract.
Definition at line 674 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Divide by scalar.
Definition at line 607 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, and agx::Vec3T< T >::Vec3T().
|
inherited |
Unary divide by scalar.
Definition at line 613 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
|
inherited |
Definition at line 487 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 493 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
Cross product operator.
Definition at line 559 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 453 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 459 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
Definition at line 816 of file Vec3Template.h.
References agx::random(), and agx::Vec3T< T >::Vec3T().
|
staticinherited |
Definition at line 822 of file Vec3Template.h.
References agx::random(), and agx::Vec3T< T >::Vec3T().
Definition at line 465 of file Vec3Template.h.
References agx::Vec3T< T >::m_data, agx::Vec3T< T >::x(), agx::Vec3T< T >::y(), and agx::Vec3T< T >::z().
|
inherited |
Definition at line 473 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 479 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Set the value of element i. Mainly for accessing vec3 in Lua.
Definition at line 809 of file Vec3Template.h.
|
inherited |
Scale the vector so that is has the specified length.
Definition at line 713 of file Vec3Template.h.
References agx::Vec3T< T >::length(), and agx::Vec3T< T >::m_data.
|
inherited |
Store the tree components to the given memory area.
Definition at line 829 of file Vec3Template.h.
References agx::Vec3T< T >::ptr().
|
inherited |
Definition at line 499 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 517 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
staticinherited |
Definition at line 777 of file Vec3Template.h.
|
inherited |
Definition at line 505 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 523 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
staticinherited |
Definition at line 783 of file Vec3Template.h.
Referenced by agxModel::Deformable1DRadiusGeometryFactory< agxCollide::Capsule >::createGeometry().
|
inline |
Definition at line 142 of file LookupTables.h.
|
inherited |
Definition at line 511 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
inherited |
Definition at line 529 of file Vec3Template.h.
References agx::Vec3T< T >::m_data.
|
staticinherited |
Definition at line 789 of file Vec3Template.h.
Referenced by agxModel::Deformable1DRadiusGeometryFactory< agxCollide::Capsule >::createGeometry(), agxRender::WireRenderProxy::SegmentDef::getTransform(), and agxOSG::ExampleApplication::isCameraHomeSet().
|
protectedinherited |
Definition at line 290 of file Vec3Template.h.