aboutsummaryrefslogtreecommitdiff
path: root/src/raymath.h
diff options
context:
space:
mode:
authorMarc Palau <sucdepressec@gmail.com>2015-03-02 20:52:58 +0100
committerMarc Palau <sucdepressec@gmail.com>2015-03-02 20:52:58 +0100
commit3cad094edd94f859540b16bbdafcf2cfb9d02016 (patch)
treeb39a6af536d03e8c4726c791bf966debfe8cd5be /src/raymath.h
parentc062f8d4fe3b600ea63a7a7f783963cf3d6aca84 (diff)
downloadraylib-3cad094edd94f859540b16bbdafcf2cfb9d02016.tar.gz
raylib-3cad094edd94f859540b16bbdafcf2cfb9d02016.zip
Changes integration (some WIP, view details)
Corrected GetMouseWheelMove() Corrected camera system Reviewed cubicmap resolution (collision detection) Added QuaternionTransform() WIP: Raycast system (not working) WIP: Reviewing axis-angle rotations...
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h
index c8c1a26c..b3676ed9 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -91,7 +91,7 @@ void VectorNormalize(Vector3 *v); // Normalize provided ve
float VectorDistance(Vector3 v1, Vector3 v2); // Calculate distance between two points
Vector3 VectorLerp(Vector3 v1, Vector3 v2, float amount); // Calculate linear interpolation between two vectors
Vector3 VectorReflect(Vector3 vector, Vector3 normal); // Calculate reflected vector to normal
-void VectorTransform(Vector3 *v, Matrix mat); // Transforms a Vector3 with a given Matrix
+void VectorTransform(Vector3 *v, Matrix mat); // Transforms a Vector3 by a given Matrix
Vector3 VectorZero(void); // Return a Vector3 init to zero
//------------------------------------------------------------------------------------
@@ -134,6 +134,7 @@ Quaternion QuaternionFromMatrix(Matrix matrix); // Returns a qua
Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle); // Returns rotation quaternion for an angle around an axis
Matrix QuaternionToMatrix(Quaternion q); // Calculates the matrix from the given quaternion
void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle); // Returns the axis and the angle for a given quaternion
+void QuaternionTransform(Quaternion *q, Matrix mat); // Transform a quaternion given a transformation matrix
#ifdef __cplusplus
}