|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <vector3d.h>
Inheritance diagram for lwpp::Vector3< T >:
Collaboration diagram for lwpp::Vector3< T >:Public Member Functions | |
| Vector3 (T n=0.0) | |
| Default Constructor. | |
| Vector3 (T _x, T _y, T _z) | |
| Constructor with all three components. | |
| Vector3 (const T n[3]) | |
| Construct with an array of doubles. | |
| Vector3 (const Point3< T > &p) | |
| Vector3 (T theta, T phi) | |
| Construct from radial angles. | |
| void | Abs () |
| T * | asLWVector () |
| Vector3 | Cross (Vector3 a) const |
| T | Dot (Vector3 a) const |
| Get the Dot product. | |
| T | Magnitude () const |
| Return the Length/Magnitude of the Vector3. | |
| Vector3 & | Normalize () |
| Normalize the Vector3. | |
| Vector3 | operator* (Vector3 b) |
| Vector3 | operator* (double b) |
| Vector3 & | operator*= (Vector3 b) |
| Vector3 & | operator*= (T b) |
| Vector3 | operator+ (Vector3 b) |
| Add a Vector3. | |
| Vector3 & | operator+= (Vector3 b) |
| Vector3 | operator- (Vector3 b) |
| Subtract a Vector3. | |
| Vector3 & | operator-= (Vector3 b) |
| Subtract a Vector3. | |
| Vector3 | operator/ (Vector3 b) |
| Vector3 | operator/ (T b) |
| Vector3 & | operator/= (Vector3 b) |
| Vector3 & | operator/= (T b) |
| T | SphericalPhi () |
| T | SphericalTheta () |
| void | Translate (Vector3 dir, T distance) |
| T & | X () |
| T & | Y () |
| T & | Z () |
Public Attributes | |
| T | x |
| T | y |
| T | z |
| Storage for the vector components, use &x for LW compatibility. | |
Base Class for Vector, will later on be a template, currently uses doubles only
|
inlineexplicit |
Default Constructor.
| n | value to set all components to. |
|
inline |
Constructor with all three components.
| _x | first component |
| _y | second component |
| _z | third component |
|
inlineexplicit |
Construct with an array of doubles.
| n | array of 3 doubles to initialize to. |
|
inlineexplicit |
|
inline |
Construct from radial angles.
|
inline |
|
inline |
|
inline |
|
inline |
Get the Dot product.
|
inline |
Return the Length/Magnitude of the Vector3.
|
inline |
Normalize the Vector3.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Add a Vector3.
|
inline |
operator /// Add a Vector3
|
inline |
Subtract a Vector3.
|
inline |
Subtract a Vector3.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| T lwpp::Vector3< T >::x |
| T lwpp::Vector3< T >::y |
| T lwpp::Vector3< T >::z |
Storage for the vector components, use &x for LW compatibility.