Alpha Engine: AELineSegment2.h File Reference

AlphaEngine

AELineSegment2.h File Reference

Header file for the 2D line segment library. More...

Go to the source code of this file.

Classes

struct  AELineSegment2
 

Typedefs

typedef struct AELineSegment2 AELineSegment2
 

Functions

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 normal with one of the points. More...
 

Detailed Description

Header file for the 2D line segment library.

Project: Alpha Engine
Author
Antoine Abi Chacra
Date
March 19, 2012
Copyright
Copyright (C) 2013 DigiPen Institute of Technology. Reproduction or disclosure of this file or its contents without the prior written consent of DigiPen Institute of Technology is prohibited.

Definition in file AELineSegment2.h.

Typedef Documentation

Function Documentation

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 normal with one of the points.

Warning
The distance between pPt0 and pPt1 should be greater than EPSILON.
Parameters
[out]pLSPointer to AELineSegment2 to be set.
[in]pPt0Pointer to AEVec2 for input.
[in]pPt1Pointer to AEVec2 for input.
Return values
s32Returns 1 if pLS is successfully intialized. Else returns 0.
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by   doxygen 1.8.5