"L. Spiro Engine"
Public Member Functions | Static Public Member Functions | Static Protected Attributes

lsm::CVector3 Class Reference

A standard 2D vector of type LSREAL. More...

#include <LSMVector3.h>

Inheritance diagram for lsm::CVector3:
lsm::CVector3Base< LSREAL, CVector3 >

List of all members.

Public Member Functions

LSE_INLINE LSE_CALLCTOR CVector3 (LSREAL _fX, LSREAL _fY, LSREAL _fZ)
LSE_INLINE LSE_CALLCTOR CVector3 (const CVector3 &_vOther)
LSE_INLINE LSE_CALLCTOR CVector3 (LSREAL *_pfValues)
LSE_INLINE LSREAL LSE_FCALL Len () const
LSE_INLINE LSVOID LSE_FCALL Normalize ()

Static Public Member Functions

static LSE_INLINE const
CVector3 &LSE_CALL 
ForwardVector ()
static LSE_INLINE const
CVector3 &LSE_CALL 
UpVector ()
static LSE_INLINE const
CVector3 &LSE_CALL 
RightVector ()
static LSE_INLINE const
CVector3 &LSE_CALL 
ZeroVector ()

Static Protected Attributes

static CVector3 m_vUp
static CVector3 m_vRight
static CVector3 m_vForward
static CVector3 m_vZero

Detailed Description

A standard 2D vector of type LSREAL.

Class CVector3 Description: A standard 2D vector of type LSREAL.


Member Function Documentation

LSE_INLINE const CVector3 &LSE_CALL lsm::CVector3::ForwardVector ( ) [static]

Get the global forward vector.

Returns:
Returns CVector3( LSM_ZERO, LSM_ZERO, LSM_ONE ).
LSE_INLINE LSREAL LSE_FCALL lsm::CVector3::Len ( ) const

Calculates the length of the vector.

Returns:
Returns the length of the vector.

Reimplemented from lsm::CVector3Base< LSREAL, CVector3 >.

LSE_INLINE LSVOID LSE_FCALL lsm::CVector3::Normalize ( )

Normalizes this vector. Normalization is the process of adjusting the length of the vector so that it is unit length (1 unit in length) while maintaining its direction. Accuracy/speed depends on the LSM_PERFORMANCE macro.

Reimplemented from lsm::CVector3Base< LSREAL, CVector3 >.

LSE_INLINE const CVector3 &LSE_CALL lsm::CVector3::RightVector ( ) [static]

Get the global right vector.

Returns:
Returns CVector3( LSM_ONE, LSM_ZERO, LSM_ZERO ).
LSE_INLINE const CVector3 &LSE_CALL lsm::CVector3::UpVector ( ) [static]

Get the global up vector.

Returns:
Returns CVector3( LSM_ZERO, LSM_ONE, LSM_ZERO ).
LSE_INLINE const CVector3 &LSE_CALL lsm::CVector3::ZeroVector ( ) [static]

Get the global zero vector.

Returns:
Returns CVector3( LSM_ZERO, LSM_ZERO, LSM_ZERO ).

Member Data Documentation

CVector3 lsm::CVector3::m_vForward [static, protected]

Global forward vector.

CVector3 lsm::CVector3::m_vRight [static, protected]

Global right vector.

CVector3 lsm::CVector3::m_vUp [static, protected]

Global up vector.

CVector3 lsm::CVector3::m_vZero [static, protected]

Zero vector.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator