mav_vectorAdd(3)

NAME
mav_vectorAdd - Vector manipulation utility functions.

LEVEL
Maverik Level 1

SYNTAX
MAV_vector mav_vectorAdd(MAV_vector v1, MAV_vector v2);

MAV_vector mav_vectorCrossProduct(MAV_vector v1, MAV_vector v2);

MAV_vector mav_vectorSet(float x, float y, float z);

float mav_vectorDotProduct(MAV_vector v1, MAV_vector v2);

MAV_vector mav_vectorMult(MAV_vector v, MAV_matrix m);

MAV_vector mav_vectorMult3x3(MAV_vector v, MAV_matrix m);

MAV_vector mav_vectorMult4x4(MAV_vector v, MAV_matrix m);

MAV_vector mav_vectorNormalize(MAV_vector v);

MAV_vector mav_vectorRotate(MAV_vector v, MAV_vector ax, float ang);

MAV_vector mav_vectorScalar(MAV_vector v1, float f);

MAV_vector mav_vectorSub(MAV_vector v1, MAV_vector v2);

float mav_vectorMag(MAV_vector v1);

DESCRIPTION
adds the two 3D vectors v1 and v2, returning the result vector. computes the cross product of the two 3D vectors v1 and v2, and returns the resulting vector. creates the 3D column vector (x,y,z). computes the dot product of the two 3D vectors v1 and v2 returning the result. multiplies the 3D vector v by the 4x3 matrix m, returning the multiplied vector. multiplies the 3D vector v by the 3x3 matrix m, returning the multiplied vector. multiplies the 3D vector v by the 4x4 matrix m, returning the multiplied vector. normalises the 3D vector (x,y,z), returning the normalised vector. rotates the vector v by ang radians about an axis defined by ax, which passes through the origin. The resulting rotated vector is returned. multiplies the 3D vector v1 by f, and returns the resulting vector. computes (v1-v2), and returns the result vector. computes and returns the magnitude of the vector.