|
| Vector3T (const FloatType *from) |
|
| Vector3T (FloatType x, FloatType y, FloatType z) |
|
| operator FloatType * () |
|
| operator const FloatType * () const |
|
template<typename D3DXVECTOR3 > |
__forceinline | Vector3T (const D3DXVECTOR3 &from) |
|
template<typename D3DXVECTOR3 > |
__forceinline | operator D3DXVECTOR3 const () |
|
Vector3T & | operator+= (const Vector3T &src) |
|
Vector3T & | operator-= (const Vector3T &src) |
|
Vector3T & | operator*= (FloatType scale) |
|
Vector3T & | operator/= (FloatType scale) |
|
Vector3T | operator+ () const |
|
Vector3T | operator- () const |
|
Vector3T | operator+ (const Vector3T &src) const |
|
Vector3T | operator- (const Vector3T &src) const |
|
Vector3T | operator* (FloatType scale) const |
|
Vector3T | operator/ (FloatType scale) const |
|
bool | operator== (const Vector3T &rhs) const |
|
bool | operator!= (const Vector3T &rhs) const |
|
| __declspec (property(get=GetLengthSq)) FloatType LengthSq |
|
| __declspec (property(get=GetLength)) FloatType Length |
|
Vector3T | GetNormal () const |
|
FloatType | GetLengthSq () const |
|
FloatType | GetLength () const |
|
FloatType | Distance (const Vector3T &a) const |
|
FloatType | Distance2 (const Vector3T &a) const |
|
void | SetLength (FloatType length) |
|
template<typename FloatType>
struct Proud::Vector3T< FloatType >
Vector 3D Class
- The purpose of this class is to avoid platform depedence even though Vector 3 already exists.
- To increase the accuracy(i.e. Online game with the outer space backgroundw), FloatType is used. If you require the lower specification then we suggest to use a different object type rather than Vector 3.
- This module supports arithmetic operators thus it's possible to code as shown in below.
Vector3T a = Vector3T(1,2,3);
Vector3T b = Vector3T(4,5,6);
Vector3T c = (a * b) + c - d;