My Project
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ParaEngine::SpriteThickLine Struct Reference

Public Member Functions

Vector3 normalVector ()
 

Static Public Member Functions

static void normalVector (float x1, float y1, float x2, float y2, float *nx, float *ny, float fLineWidth=0.5f)
 return a 2d normal that is perpendicular to line (x1,y1)-(x2,y2). More...
 

Public Attributes

DeviceTexturePtr_type texture
 
UINT texw
 
UINT texh
 
RECT rect
 
Vector3 vStart
 
Vector3 vEnd
 
DWORD color
 
float Thickness
 
Matrix4 transform
 

Member Function Documentation

§ normalVector()

void ParaEngine::SpriteThickLine::normalVector ( float  x1,
float  y1,
float  x2,
float  y2,
float *  nx,
float *  ny,
float  fLineWidth = 0.5f 
)
static

return a 2d normal that is perpendicular to line (x1,y1)-(x2,y2).

Parameters
fLineWidthhalf of the line thickness. default to 0.5f.

The documentation for this struct was generated from the following files: