Alpha Engine
|
AEVec2.h
Go to the documentation of this file.
void AEVec2Normalize(AEVec2 *pResult, AEVec2 *pVec0)
Set pResult to the normalized of pVec0.
f32 AEVec2DotProduct(AEVec2 *pVec0, AEVec2 *pVec1)
Calculate the dot product of 2 vectors.
void AEVec2ProjectPerp(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1)
Set pResult to the perpendicular projection (rejection) of pVec0 onto pVec1.
Definition: AEVec2.h:26
void AEVec2Lerp(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1, f32 t)
Set pResult to the linear interpolation between pVec0 and pVec1 at time interval t.
f32 AEVec2Distance(AEVec2 *pVec0, AEVec2 *pVec1)
Calculate the distance between 2 points.
struct AEVec2 AEVec2
void AEVec2ScaleSub(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1, f32 s)
Set pResult to ((pVec0 - pVec1) * s).
void AEVec2Sub(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1)
Set pResult to (pVec0 - pVec1).
f32 AEVec2CrossProductMag(AEVec2 *pVec0, AEVec2 *pVec1)
Calculate the magnitude of the cross product of 2 vectors.
void AEVec2Add(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1)
Set pResult to (pVec0 + pVec1).
Header file for the library settings.
Header file for the typedefs.
f32 AEVec2SquareDistance(AEVec2 *pVec0, AEVec2 *pVec1)
Calculate the squared distance between 2 points.
void AEVec2ScaleAdd(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1, f32 s)
Set pResult to ((pVec0 + pVec1) * s).
void AEVec2Project(AEVec2 *pResult, AEVec2 *pVec0, AEVec2 *pVec1)
Set pResult to the projection of pVec1 onto pVec0.
s32 AEVec2Test(s32 i1, s32 i2)
Generated on Sat Jan 4 2014 02:06:22 for Alpha Engine by
