57 float dotProduct(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
73 float angle(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
89 float angleTo(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
103 float crossProduct(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
118 float distance(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
131 float2
midPoint(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
145 float normalise(
float vec1_X,
float vec1_Y );
167 float length(
float vec1_X,
float vec1_Y );
177 int isNAN(
float vec1_X,
float vec1_Y );
213 float2
randomDeviant(
float vec1_X,
float vec1_Y,
float randomAngle );
228 float2
reflect(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
246 float squaredDistance(
float vec1_X,
float vec1_Y,
float vec2_X,
float vec2_Y );
float distance(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Returns the distance to another vector.
float squaredDistance(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Returns the square of the distance to another vector.
float2 normalisedCopy(float vec1_X, float vec1_Y)
As normalise, except that this vector is unaffected and the normalised vector is returned as a copy...
float2 randomDeviant(float vec1_X, float vec1_Y, float randomAngle)
Generates a new random vector which deviates from this vector by a given angle in a random direction...
int isNAN(float vec1_X, float vec1_Y)
Check whether this vector contains valid values.
float2 midPoint(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Returns a vector at a point half way between this and the passed in vector.
float2 perpendicular(float vec1_X, float vec1_Y)
Generates a vector perpendicular to this vector (eg an 'up' vector).
float crossProduct(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Calculates the 2 dimensional cross-product of 2 vectors, which results in a single floating point val...
Definition: LUA_API_Vector2.h:37
float angleTo(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Gets the oriented angle between 2 vectors.
float2 reflect(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Calculates a reflection vector to the plane with the given normal .
int isZeroLength(float vec1_X, float vec1_Y)
Returns true if this vector is zero length.
float squaredLength(float vec1_X, float vec1_Y)
Returns the square of the length(magnitude) of the vector.
float normalise(float vec1_X, float vec1_Y)
Normalises the vector.
float dotProduct(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Calculates the dot (scalar) product of this vector with another.
float angle(float vec1_X, float vec1_Y, float vec2_X, float vec2_Y)
Gets the angle between 2 vectors.
float length(float vec1_X, float vec1_Y)
Returns the length (magnitude) of the vector.