Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cCoordSpaceDX Class Reference

#include <cCoordSpace.h>

Public Types

typedef float DVALUE_t
 

Public Member Functions

 cCoordSpaceDX ()
 
cVector3f CvtWorldToRender2 (const cPoint3f &pt) const
 
cPoint3f CvtRenderToWorld2 (const cVector3f &vPt) const
 
cVector3f CvtWorldToRender (const cPoint3f &pt) const
 
cPoint3f CvtRenderToWorld (const cVector3f &vPt) const
 
 UNITTEST_FRIEND (cCoordSpace)
 

Public Attributes

cVector3f m_d3dOffset
 offset for convert to d3d device. More...
 
bool m_bOffsetActive
 actively changing the m_d3dOffset More...
 
UINT m_d3dFrameOffset
 for debug use. (the frame during which i did the offset) More...
 

Detailed Description

simple transform from 1 coordinate space to another. DX render (Left Hand Rule) to world map. y and z are swapped ! + add/sub offset

Member Typedef Documentation

◆ DVALUE_t

Constructor & Destructor Documentation

◆ cCoordSpaceDX()

GrayLib::cCoordSpaceDX::cCoordSpaceDX ( )
inline

Member Function Documentation

◆ CvtRenderToWorld()

cPoint3f GrayLib::cCoordSpaceDX::CvtRenderToWorld ( const cVector3f vPt) const
inline

Convert vector for drawing to point3d. y and z are swapped ! + offset set this as XMFLOAT3 (y,z reversed)

◆ CvtRenderToWorld2()

cPoint3f GrayLib::cCoordSpaceDX::CvtRenderToWorld2 ( const cVector3f vPt) const
inline

◆ CvtWorldToRender()

cVector3f GrayLib::cCoordSpaceDX::CvtWorldToRender ( const cPoint3f pt) const
inline

Convert point3d to vector for drawing. y and z are swapped ! + offset get this as a XMFLOAT3

◆ CvtWorldToRender2()

cVector3f GrayLib::cCoordSpaceDX::CvtWorldToRender2 ( const cPoint3f pt) const
inline

◆ UNITTEST_FRIEND()

GrayLib::cCoordSpaceDX::UNITTEST_FRIEND ( cCoordSpace  )

Member Data Documentation

◆ m_bOffsetActive

bool GrayLib::cCoordSpaceDX::m_bOffsetActive

actively changing the m_d3dOffset

◆ m_d3dFrameOffset

UINT GrayLib::cCoordSpaceDX::m_d3dFrameOffset

for debug use. (the frame during which i did the offset)

◆ m_d3dOffset

cVector3f GrayLib::cCoordSpaceDX::m_d3dOffset

offset for convert to d3d device.


The documentation for this class was generated from the following file: