|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <point3d.h>
Public Member Functions | |
| Point3 (T n=0.0) | |
| Default Constructor. | |
| Point3 (T _x, T _y, T _z) | |
| Constructor with all three components. | |
| Point3 (const T n[3]) | |
| Construct with an array of doubles. | |
| Point3 (const Vector3< T > &v) | |
| Construct from a vector, basically describing a point in a unit sphere. | |
| T * | asLWVector () |
| T | Magnitude () const |
| Point3 | operator* (const T d) const |
| Point3 & | operator*= (const T d) |
| Point3 & | operator*= (const Vector3< T > &v) |
| Point3 | operator+ (const Vector3< T > &v) const |
| Add a Vector3d. | |
| Point3 & | operator+= (const Vector3< T > &v) |
| Point3 | operator- (const Vector3< T > &v) const |
| Subtract a Vector3d. | |
| Vector3< T > | operator- (const Point3 &p) const |
| Subtract a Point3. | |
| Point3 & | operator-= (const Vector3< T > &v) |
| Point3 | operator/ (const T d) const |
| Point3 & | operator/= (const T d) |
| Point3 & | operator/= (const Vector3< T > &v) |
Public Attributes | |
| double | x |
| double | y |
| double | z |
| Storage for the vector components, uses &x for LW compatibility. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename T > | |
| T | Distance (const Point3< T > &p1, const Point3< T > &p2) |
A Point3 describes a location in 3D space as denoted by x,y,z
|
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 |
|
inline |
Construct with an array of doubles.
| n | array of 3 doubles to initialize to. |
|
inlineexplicit |
Construct from a vector, basically describing a point in a unit sphere.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Add a Vector3d.
|
inline |
|
inline |
Subtract a Vector3d.
|
inline |
Subtract a Point3.
|
inline |
|
inline |
|
inline |
|
inline |
Compute the distance between two points
| double lwpp::Point3< T >::x |
| double lwpp::Point3< T >::y |
| double lwpp::Point3< T >::z |
Storage for the vector components, uses &x for LW compatibility.