Alpha Engine: AELineSegment2.h Source File

AlphaEngine

AELineSegment2.h
Go to the documentation of this file.
1 /******************************************************************************/
15 /******************************************************************************/
16 
17 #ifndef AE_LS2_H
18 #define AE_LS2_H
19 
20 // ---------------------------------------------------------------------------
21 
22 typedef struct AELineSegment2
23 {
27  float mNdotP0;
29 
30 
31 // ---------------------------------------------------------------------------
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #endif
36 
37 /******************************************************************************/
63 /******************************************************************************/
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 // ---------------------------------------------------------------------------
71 
72 #endif // VEC2_H
float mNdotP0
To avoid computing it every time it's needed.
Definition: AEVec2.h:26
s32 AEBuildLineSegment2(AELineSegment2 *pLS, AEVec2 *pPt0, AEVec2 *pPt1)
Initalize pLS using pPt0 and pPt1. Also computes the normal (unit vector) and the dot product of the ...
AEVec2 mN
Line's normal.
AEVec2 mP0
Point on the line.
AEVec2 mP1
Point on the line.
signed int s32
Definition: AETypes.h:27
#define AE_API
Definition: AEExport.h:53
struct AELineSegment2 AELineSegment2
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by   doxygen 1.8.5