Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
raymath.h File Reference
#include <math.h>
+ Include dependency graph for raymath.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Vector2
 
struct  Vector3
 
struct  Vector4
 
struct  Matrix
 
struct  float3
 
struct  float16
 

Macros

#define RMAPI   inline
 raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions More...
 
#define PI   3.14159265358979323846f
 
#define EPSILON   0.000001f
 
#define DEG2RAD   (PI/180.0f)
 
#define RAD2DEG   (180.0f/PI)
 
#define MatrixToFloat(mat)   (MatrixToFloatV(mat).v)
 
#define Vector3ToFloat(vec)   (Vector3ToFloatV(vec).v)
 
#define RL_VECTOR2_TYPE
 
#define RL_VECTOR3_TYPE
 
#define RL_VECTOR4_TYPE
 
#define RL_QUATERNION_TYPE
 
#define RL_MATRIX_TYPE
 

Typedefs

typedef struct Vector2 Vector2
 
typedef struct Vector3 Vector3
 
typedef struct Vector4 Vector4
 
typedef Vector4 Quaternion
 
typedef struct Matrix Matrix
 
typedef struct float3 float3
 
typedef struct float16 float16
 

Functions

RMAPI float Clamp (float value, float min, float max)
 
RMAPI float Lerp (float start, float end, float amount)
 
RMAPI float Normalize (float value, float start, float end)
 
RMAPI float Remap (float value, float inputStart, float inputEnd, float outputStart, float outputEnd)
 
RMAPI int FloatEquals (float x, float y)
 
RMAPI Vector2 Vector2Zero (void)
 
RMAPI Vector2 Vector2One (void)
 
RMAPI Vector2 Vector2Add (Vector2 v1, Vector2 v2)
 
RMAPI Vector2 Vector2AddValue (Vector2 v, float add)
 
RMAPI Vector2 Vector2Subtract (Vector2 v1, Vector2 v2)
 
RMAPI Vector2 Vector2SubtractValue (Vector2 v, float sub)
 
RMAPI float Vector2Length (Vector2 v)
 
RMAPI float Vector2LengthSqr (Vector2 v)
 
RMAPI float Vector2DotProduct (Vector2 v1, Vector2 v2)
 
RMAPI float Vector2Distance (Vector2 v1, Vector2 v2)
 
RMAPI float Vector2DistanceSqr (Vector2 v1, Vector2 v2)
 
RMAPI float Vector2Angle (Vector2 v1, Vector2 v2)
 
RMAPI Vector2 Vector2Scale (Vector2 v, float scale)
 
RMAPI Vector2 Vector2Multiply (Vector2 v1, Vector2 v2)
 
RMAPI Vector2 Vector2Negate (Vector2 v)
 
RMAPI Vector2 Vector2Divide (Vector2 v1, Vector2 v2)
 
RMAPI Vector2 Vector2Normalize (Vector2 v)
 
RMAPI Vector2 Vector2Transform (Vector2 v, Matrix mat)
 
RMAPI Vector2 Vector2Lerp (Vector2 v1, Vector2 v2, float amount)
 
RMAPI Vector2 Vector2Reflect (Vector2 v, Vector2 normal)
 
RMAPI Vector2 Vector2Rotate (Vector2 v, float angle)
 
RMAPI Vector2 Vector2MoveTowards (Vector2 v, Vector2 target, float maxDistance)
 
RMAPI Vector2 Vector2Invert (Vector2 v)
 
RMAPI Vector2 Vector2Clamp (Vector2 v, Vector2 min, Vector2 max)
 
RMAPI Vector2 Vector2ClampValue (Vector2 v, float min, float max)
 
RMAPI int Vector2Equals (Vector2 p, Vector2 q)
 
RMAPI Vector3 Vector3Zero (void)
 
RMAPI Vector3 Vector3One (void)
 
RMAPI Vector3 Vector3Add (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3AddValue (Vector3 v, float add)
 
RMAPI Vector3 Vector3Subtract (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3SubtractValue (Vector3 v, float sub)
 
RMAPI Vector3 Vector3Scale (Vector3 v, float scalar)
 
RMAPI Vector3 Vector3Multiply (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3CrossProduct (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3Perpendicular (Vector3 v)
 
RMAPI float Vector3Length (const Vector3 v)
 
RMAPI float Vector3LengthSqr (const Vector3 v)
 
RMAPI float Vector3DotProduct (Vector3 v1, Vector3 v2)
 
RMAPI float Vector3Distance (Vector3 v1, Vector3 v2)
 
RMAPI float Vector3DistanceSqr (Vector3 v1, Vector3 v2)
 
RMAPI float Vector3Angle (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3Negate (Vector3 v)
 
RMAPI Vector3 Vector3Divide (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3Normalize (Vector3 v)
 
RMAPI void Vector3OrthoNormalize (Vector3 *v1, Vector3 *v2)
 
RMAPI Vector3 Vector3Transform (Vector3 v, Matrix mat)
 
RMAPI Vector3 Vector3RotateByQuaternion (Vector3 v, Quaternion q)
 
RMAPI Vector3 Vector3Lerp (Vector3 v1, Vector3 v2, float amount)
 
RMAPI Vector3 Vector3Reflect (Vector3 v, Vector3 normal)
 
RMAPI Vector3 Vector3Min (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3Max (Vector3 v1, Vector3 v2)
 
RMAPI Vector3 Vector3Barycenter (Vector3 p, Vector3 a, Vector3 b, Vector3 c)
 
RMAPI Vector3 Vector3Unproject (Vector3 source, Matrix projection, Matrix view)
 
RMAPI float3 Vector3ToFloatV (Vector3 v)
 
RMAPI Vector3 Vector3Invert (Vector3 v)
 
RMAPI Vector3 Vector3Clamp (Vector3 v, Vector3 min, Vector3 max)
 
RMAPI Vector3 Vector3ClampValue (Vector3 v, float min, float max)
 
RMAPI int Vector3Equals (Vector3 p, Vector3 q)
 
RMAPI Vector3 Vector3Refract (Vector3 v, Vector3 n, float r)
 
RMAPI float MatrixDeterminant (Matrix mat)
 
RMAPI float MatrixTrace (Matrix mat)
 
RMAPI Matrix MatrixTranspose (Matrix mat)
 
RMAPI Matrix MatrixInvert (Matrix mat)
 
RMAPI Matrix MatrixIdentity (void)
 
RMAPI Matrix MatrixAdd (Matrix left, Matrix right)
 
RMAPI Matrix MatrixSubtract (Matrix left, Matrix right)
 
RMAPI Matrix MatrixMultiply (Matrix left, Matrix right)
 
RMAPI Matrix MatrixTranslate (float x, float y, float z)
 
RMAPI Matrix MatrixRotate (Vector3 axis, float angle)
 
RMAPI Matrix MatrixRotateX (float angle)
 
RMAPI Matrix MatrixRotateY (float angle)
 
RMAPI Matrix MatrixRotateZ (float angle)
 
RMAPI Matrix MatrixRotateXYZ (Vector3 ang)
 
RMAPI Matrix MatrixRotateZYX (Vector3 ang)
 
RMAPI Matrix MatrixScale (float x, float y, float z)
 
RMAPI Matrix MatrixFrustum (double left, double right, double bottom, double top, double near, double far)
 
RMAPI Matrix MatrixPerspective (double fovy, double aspect, double near, double far)
 
RMAPI Matrix MatrixOrtho (double left, double right, double bottom, double top, double near, double far)
 
RMAPI Matrix MatrixLookAt (Vector3 eye, Vector3 target, Vector3 up)
 
RMAPI float16 MatrixToFloatV (Matrix mat)
 
RMAPI Quaternion QuaternionAdd (Quaternion q1, Quaternion q2)
 
RMAPI Quaternion QuaternionAddValue (Quaternion q, float add)
 
RMAPI Quaternion QuaternionSubtract (Quaternion q1, Quaternion q2)
 
RMAPI Quaternion QuaternionSubtractValue (Quaternion q, float sub)
 
RMAPI Quaternion QuaternionIdentity (void)
 
RMAPI float QuaternionLength (Quaternion q)
 
RMAPI Quaternion QuaternionNormalize (Quaternion q)
 
RMAPI Quaternion QuaternionInvert (Quaternion q)
 
RMAPI Quaternion QuaternionMultiply (Quaternion q1, Quaternion q2)
 
RMAPI Quaternion QuaternionScale (Quaternion q, float mul)
 
RMAPI Quaternion QuaternionDivide (Quaternion q1, Quaternion q2)
 
RMAPI Quaternion QuaternionLerp (Quaternion q1, Quaternion q2, float amount)
 
RMAPI Quaternion QuaternionNlerp (Quaternion q1, Quaternion q2, float amount)
 
RMAPI Quaternion QuaternionSlerp (Quaternion q1, Quaternion q2, float amount)
 
RMAPI Quaternion QuaternionFromVector3ToVector3 (Vector3 from, Vector3 to)
 
RMAPI Quaternion QuaternionFromMatrix (Matrix mat)
 
RMAPI Matrix QuaternionToMatrix (Quaternion q)
 
RMAPI Quaternion QuaternionFromAxisAngle (Vector3 axis, float angle)
 
RMAPI void QuaternionToAxisAngle (Quaternion q, Vector3 *outAxis, float *outAngle)
 
RMAPI Quaternion QuaternionFromEuler (float pitch, float yaw, float roll)
 
RMAPI Vector3 QuaternionToEuler (Quaternion q)
 
RMAPI Quaternion QuaternionTransform (Quaternion q, Matrix mat)
 
RMAPI int QuaternionEquals (Quaternion p, Quaternion q)
 

Macro Definition Documentation

◆ DEG2RAD

#define DEG2RAD   (PI/180.0f)

Definition at line 85 of file raymath.h.

◆ EPSILON

#define EPSILON   0.000001f

Definition at line 81 of file raymath.h.

◆ MatrixToFloat

#define MatrixToFloat (   mat)    (MatrixToFloatV(mat).v)

Definition at line 94 of file raymath.h.

◆ PI

#define PI   3.14159265358979323846f

Definition at line 77 of file raymath.h.

◆ RAD2DEG

#define RAD2DEG   (180.0f/PI)

Definition at line 89 of file raymath.h.

◆ RL_MATRIX_TYPE

#define RL_MATRIX_TYPE

Definition at line 149 of file raymath.h.

◆ RL_QUATERNION_TYPE

#define RL_QUATERNION_TYPE

Definition at line 138 of file raymath.h.

◆ RL_VECTOR2_TYPE

#define RL_VECTOR2_TYPE

Definition at line 111 of file raymath.h.

◆ RL_VECTOR3_TYPE

#define RL_VECTOR3_TYPE

Definition at line 121 of file raymath.h.

◆ RL_VECTOR4_TYPE

#define RL_VECTOR4_TYPE

Definition at line 132 of file raymath.h.

◆ RMAPI

#define RMAPI   inline

raymath v1.5 - Math functions to work with Vector2, Vector3, Matrix and Quaternions

CONFIGURATION:

#define RAYMATH_IMPLEMENTATION Generates the implementation of the library into the included file. If not defined, the library is in header only mode and can be included in other headers or source files without problems. But only ONE file should hold the implementation.

#define RAYMATH_STATIC_INLINE Define static inline functions code, so #include header suffices for use. This may use up lots of memory.

CONVENTIONS:

  • Functions are always self-contained, no function use another raymath function inside, required code is directly re-implemented inside
  • Functions input parameters are always received by value (2 unavoidable exceptions)
  • Functions use always a "result" variable for return
  • Functions are always defined inline
  • Angles are always in radians (DEG2RAD/RAD2DEG macros provided for convenience)

LICENSE: zlib/libpng

Copyright (c) 2015-2022 Ramon Santamaria (@raysan5)

This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition at line 69 of file raymath.h.

◆ Vector3ToFloat

#define Vector3ToFloat (   vec)    (Vector3ToFloatV(vec).v)

Definition at line 99 of file raymath.h.

Typedef Documentation

◆ float16

typedef struct float16 float16

◆ float3

typedef struct float3 float3

◆ Matrix

typedef struct Matrix Matrix

◆ Quaternion

Definition at line 137 of file raymath.h.

◆ Vector2

typedef struct Vector2 Vector2

◆ Vector3

typedef struct Vector3 Vector3

◆ Vector4

typedef struct Vector4 Vector4

Function Documentation

◆ Clamp()

RMAPI float Clamp ( float  value,
float  min,
float  max 
)

Definition at line 168 of file raymath.h.

◆ FloatEquals()

RMAPI int FloatEquals ( float  x,
float  y 
)

Definition at line 202 of file raymath.h.

◆ Lerp()

RMAPI float Lerp ( float  start,
float  end,
float  amount 
)

Definition at line 178 of file raymath.h.

◆ MatrixAdd()

RMAPI Matrix MatrixAdd ( Matrix  left,
Matrix  right 
)

Definition at line 1125 of file raymath.h.

◆ MatrixDeterminant()

RMAPI float MatrixDeterminant ( Matrix  mat)

Definition at line 1013 of file raymath.h.

◆ MatrixFrustum()

RMAPI Matrix MatrixFrustum ( double  left,
double  right,
double  bottom,
double  top,
double  near,
double  far 
)

Definition at line 1391 of file raymath.h.

◆ MatrixIdentity()

RMAPI Matrix MatrixIdentity ( void  )

Definition at line 1114 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixInvert()

RMAPI Matrix MatrixInvert ( Matrix  mat)

Definition at line 1067 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixLookAt()

RMAPI Matrix MatrixLookAt ( Vector3  eye,
Vector3  target,
Vector3  up 
)

Definition at line 1479 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixMultiply()

RMAPI Matrix MatrixMultiply ( Matrix  left,
Matrix  right 
)

Definition at line 1176 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixOrtho()

RMAPI Matrix MatrixOrtho ( double  left,
double  right,
double  bottom,
double  top,
double  near,
double  far 
)

Definition at line 1450 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixPerspective()

RMAPI Matrix MatrixPerspective ( double  fovy,
double  aspect,
double  near,
double  far 
)

Definition at line 1424 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixRotate()

RMAPI Matrix MatrixRotate ( Vector3  axis,
float  angle 
)

Definition at line 1213 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixRotateX()

RMAPI Matrix MatrixRotateX ( float  angle)

Definition at line 1257 of file raymath.h.

◆ MatrixRotateXYZ()

RMAPI Matrix MatrixRotateXYZ ( Vector3  ang)

Definition at line 1315 of file raymath.h.

◆ MatrixRotateY()

RMAPI Matrix MatrixRotateY ( float  angle)

Definition at line 1276 of file raymath.h.

◆ MatrixRotateZ()

RMAPI Matrix MatrixRotateZ ( float  angle)

Definition at line 1295 of file raymath.h.

◆ MatrixRotateZYX()

RMAPI Matrix MatrixRotateZYX ( Vector3  ang)

Definition at line 1345 of file raymath.h.

◆ MatrixScale()

RMAPI Matrix MatrixScale ( float  x,
float  y,
float  z 
)

Definition at line 1380 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixSubtract()

RMAPI Matrix MatrixSubtract ( Matrix  left,
Matrix  right 
)

Definition at line 1150 of file raymath.h.

◆ MatrixToFloatV()

RMAPI float16 MatrixToFloatV ( Matrix  mat)

Definition at line 1534 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixTrace()

RMAPI float MatrixTrace ( Matrix  mat)

Definition at line 1034 of file raymath.h.

◆ MatrixTranslate()

RMAPI Matrix MatrixTranslate ( float  x,
float  y,
float  z 
)

Definition at line 1201 of file raymath.h.

+ Here is the caller graph for this function:

◆ MatrixTranspose()

RMAPI Matrix MatrixTranspose ( Matrix  mat)

Definition at line 1042 of file raymath.h.

+ Here is the caller graph for this function:

◆ Normalize()

RMAPI float Normalize ( float  value,
float  start,
float  end 
)

Definition at line 186 of file raymath.h.

◆ QuaternionAdd()

RMAPI Quaternion QuaternionAdd ( Quaternion  q1,
Quaternion  q2 
)

Definition at line 1563 of file raymath.h.

◆ QuaternionAddValue()

RMAPI Quaternion QuaternionAddValue ( Quaternion  q,
float  add 
)

Definition at line 1571 of file raymath.h.

◆ QuaternionDivide()

RMAPI Quaternion QuaternionDivide ( Quaternion  q1,
Quaternion  q2 
)

Definition at line 1677 of file raymath.h.

◆ QuaternionEquals()

RMAPI int QuaternionEquals ( Quaternion  p,
Quaternion  q 
)

Definition at line 2002 of file raymath.h.

◆ QuaternionFromAxisAngle()

RMAPI Quaternion QuaternionFromAxisAngle ( Vector3  axis,
float  angle 
)

Definition at line 1861 of file raymath.h.

◆ QuaternionFromEuler()

RMAPI Quaternion QuaternionFromEuler ( float  pitch,
float  yaw,
float  roll 
)

Definition at line 1944 of file raymath.h.

◆ QuaternionFromMatrix()

RMAPI Quaternion QuaternionFromMatrix ( Matrix  mat)

Definition at line 1793 of file raymath.h.

◆ QuaternionFromVector3ToVector3()

RMAPI Quaternion QuaternionFromVector3ToVector3 ( Vector3  from,
Vector3  to 
)

Definition at line 1765 of file raymath.h.

◆ QuaternionIdentity()

RMAPI Quaternion QuaternionIdentity ( void  )

Definition at line 1595 of file raymath.h.

◆ QuaternionInvert()

RMAPI Quaternion QuaternionInvert ( Quaternion  q)

Definition at line 1628 of file raymath.h.

+ Here is the caller graph for this function:

◆ QuaternionLength()

RMAPI float QuaternionLength ( Quaternion  q)

Definition at line 1603 of file raymath.h.

◆ QuaternionLerp()

RMAPI Quaternion QuaternionLerp ( Quaternion  q1,
Quaternion  q2,
float  amount 
)

Definition at line 1685 of file raymath.h.

◆ QuaternionMultiply()

RMAPI Quaternion QuaternionMultiply ( Quaternion  q1,
Quaternion  q2 
)

Definition at line 1648 of file raymath.h.

+ Here is the caller graph for this function:

◆ QuaternionNlerp()

RMAPI Quaternion QuaternionNlerp ( Quaternion  q1,
Quaternion  q2,
float  amount 
)

Definition at line 1698 of file raymath.h.

+ Here is the caller graph for this function:

◆ QuaternionNormalize()

RMAPI Quaternion QuaternionNormalize ( Quaternion  q)

Definition at line 1611 of file raymath.h.

◆ QuaternionScale()

RMAPI Quaternion QuaternionScale ( Quaternion  q,
float  mul 
)

Definition at line 1664 of file raymath.h.

◆ QuaternionSlerp()

RMAPI Quaternion QuaternionSlerp ( Quaternion  q1,
Quaternion  q2,
float  amount 
)

Definition at line 1723 of file raymath.h.

+ Here is the call graph for this function:

◆ QuaternionSubtract()

RMAPI Quaternion QuaternionSubtract ( Quaternion  q1,
Quaternion  q2 
)

Definition at line 1579 of file raymath.h.

◆ QuaternionSubtractValue()

RMAPI Quaternion QuaternionSubtractValue ( Quaternion  q,
float  sub 
)

Definition at line 1587 of file raymath.h.

◆ QuaternionToAxisAngle()

RMAPI void QuaternionToAxisAngle ( Quaternion  q,
Vector3 outAxis,
float *  outAngle 
)

Definition at line 1906 of file raymath.h.

◆ QuaternionToEuler()

RMAPI Vector3 QuaternionToEuler ( Quaternion  q)

Definition at line 1965 of file raymath.h.

◆ QuaternionToMatrix()

RMAPI Matrix QuaternionToMatrix ( Quaternion  q)

Definition at line 1827 of file raymath.h.

◆ QuaternionTransform()

RMAPI Quaternion QuaternionTransform ( Quaternion  q,
Matrix  mat 
)

Definition at line 1989 of file raymath.h.

+ Here is the caller graph for this function:

◆ Remap()

RMAPI float Remap ( float  value,
float  inputStart,
float  inputEnd,
float  outputStart,
float  outputEnd 
)

Definition at line 194 of file raymath.h.

◆ Vector2Add()

RMAPI Vector2 Vector2Add ( Vector2  v1,
Vector2  v2 
)

Definition at line 230 of file raymath.h.

◆ Vector2AddValue()

RMAPI Vector2 Vector2AddValue ( Vector2  v,
float  add 
)

Definition at line 238 of file raymath.h.

◆ Vector2Angle()

RMAPI float Vector2Angle ( Vector2  v1,
Vector2  v2 
)

Definition at line 302 of file raymath.h.

◆ Vector2Clamp()

RMAPI Vector2 Vector2Clamp ( Vector2  v,
Vector2  min,
Vector2  max 
)

Definition at line 439 of file raymath.h.

◆ Vector2ClampValue()

RMAPI Vector2 Vector2ClampValue ( Vector2  v,
float  min,
float  max 
)

Definition at line 450 of file raymath.h.

◆ Vector2Distance()

RMAPI float Vector2Distance ( Vector2  v1,
Vector2  v2 
)

Definition at line 286 of file raymath.h.

◆ Vector2DistanceSqr()

RMAPI float Vector2DistanceSqr ( Vector2  v1,
Vector2  v2 
)

Definition at line 294 of file raymath.h.

◆ Vector2Divide()

RMAPI Vector2 Vector2Divide ( Vector2  v1,
Vector2  v2 
)

Definition at line 334 of file raymath.h.

◆ Vector2DotProduct()

RMAPI float Vector2DotProduct ( Vector2  v1,
Vector2  v2 
)

Definition at line 278 of file raymath.h.

◆ Vector2Equals()

RMAPI int Vector2Equals ( Vector2  p,
Vector2  q 
)

Definition at line 477 of file raymath.h.

◆ Vector2Invert()

RMAPI Vector2 Vector2Invert ( Vector2  v)

Definition at line 430 of file raymath.h.

◆ Vector2Length()

RMAPI float Vector2Length ( Vector2  v)

Definition at line 262 of file raymath.h.

◆ Vector2LengthSqr()

RMAPI float Vector2LengthSqr ( Vector2  v)

Definition at line 270 of file raymath.h.

◆ Vector2Lerp()

RMAPI Vector2 Vector2Lerp ( Vector2  v1,
Vector2  v2,
float  amount 
)

Definition at line 373 of file raymath.h.

◆ Vector2MoveTowards()

RMAPI Vector2 Vector2MoveTowards ( Vector2  v,
Vector2  target,
float  maxDistance 
)

Definition at line 411 of file raymath.h.

◆ Vector2Multiply()

RMAPI Vector2 Vector2Multiply ( Vector2  v1,
Vector2  v2 
)

Definition at line 318 of file raymath.h.

◆ Vector2Negate()

RMAPI Vector2 Vector2Negate ( Vector2  v)

Definition at line 326 of file raymath.h.

◆ Vector2Normalize()

RMAPI Vector2 Vector2Normalize ( Vector2  v)

Definition at line 342 of file raymath.h.

◆ Vector2One()

RMAPI Vector2 Vector2One ( void  )

Definition at line 222 of file raymath.h.

◆ Vector2Reflect()

RMAPI Vector2 Vector2Reflect ( Vector2  v,
Vector2  normal 
)

Definition at line 384 of file raymath.h.

◆ Vector2Rotate()

RMAPI Vector2 Vector2Rotate ( Vector2  v,
float  angle 
)

Definition at line 397 of file raymath.h.

◆ Vector2Scale()

RMAPI Vector2 Vector2Scale ( Vector2  v,
float  scale 
)

Definition at line 310 of file raymath.h.

◆ Vector2Subtract()

RMAPI Vector2 Vector2Subtract ( Vector2  v1,
Vector2  v2 
)

Definition at line 246 of file raymath.h.

◆ Vector2SubtractValue()

RMAPI Vector2 Vector2SubtractValue ( Vector2  v,
float  sub 
)

Definition at line 254 of file raymath.h.

◆ Vector2Transform()

RMAPI Vector2 Vector2Transform ( Vector2  v,
Matrix  mat 
)

Definition at line 358 of file raymath.h.

◆ Vector2Zero()

RMAPI Vector2 Vector2Zero ( void  )

Definition at line 214 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Add()

RMAPI Vector3 Vector3Add ( Vector3  v1,
Vector3  v2 
)

Definition at line 506 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3AddValue()

RMAPI Vector3 Vector3AddValue ( Vector3  v,
float  add 
)

Definition at line 514 of file raymath.h.

◆ Vector3Angle()

RMAPI float Vector3Angle ( Vector3  v1,
Vector3  v2 
)

Definition at line 641 of file raymath.h.

◆ Vector3Barycenter()

RMAPI Vector3 Vector3Barycenter ( Vector3  p,
Vector3  a,
Vector3  b,
Vector3  c 
)

Definition at line 804 of file raymath.h.

◆ Vector3Clamp()

RMAPI Vector3 Vector3Clamp ( Vector3  v,
Vector3  min,
Vector3  max 
)

Definition at line 932 of file raymath.h.

◆ Vector3ClampValue()

RMAPI Vector3 Vector3ClampValue ( Vector3  v,
float  min,
float  max 
)

Definition at line 944 of file raymath.h.

◆ Vector3CrossProduct()

RMAPI Vector3 Vector3CrossProduct ( Vector3  v1,
Vector3  v2 
)

Definition at line 554 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Distance()

RMAPI float Vector3Distance ( Vector3  v1,
Vector3  v2 
)

Definition at line 615 of file raymath.h.

◆ Vector3DistanceSqr()

RMAPI float Vector3DistanceSqr ( Vector3  v1,
Vector3  v2 
)

Definition at line 628 of file raymath.h.

◆ Vector3Divide()

RMAPI Vector3 Vector3Divide ( Vector3  v1,
Vector3  v2 
)

Definition at line 662 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3DotProduct()

RMAPI float Vector3DotProduct ( Vector3  v1,
Vector3  v2 
)

Definition at line 607 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Equals()

RMAPI int Vector3Equals ( Vector3  p,
Vector3  q 
)

Definition at line 973 of file raymath.h.

◆ Vector3Invert()

RMAPI Vector3 Vector3Invert ( Vector3  v)

Definition at line 923 of file raymath.h.

◆ Vector3Length()

RMAPI float Vector3Length ( const Vector3  v)

Definition at line 591 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3LengthSqr()

RMAPI float Vector3LengthSqr ( const Vector3  v)

Definition at line 599 of file raymath.h.

◆ Vector3Lerp()

RMAPI Vector3 Vector3Lerp ( Vector3  v1,
Vector3  v2,
float  amount 
)

Definition at line 749 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Max()

RMAPI Vector3 Vector3Max ( Vector3  v1,
Vector3  v2 
)

Definition at line 791 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Min()

RMAPI Vector3 Vector3Min ( Vector3  v1,
Vector3  v2 
)

Definition at line 779 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Multiply()

RMAPI Vector3 Vector3Multiply ( Vector3  v1,
Vector3  v2 
)

Definition at line 546 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Negate()

RMAPI Vector3 Vector3Negate ( Vector3  v)

Definition at line 654 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Normalize()

RMAPI Vector3 Vector3Normalize ( Vector3  v)

Definition at line 670 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3One()

RMAPI Vector3 Vector3One ( void  )

Definition at line 498 of file raymath.h.

◆ Vector3OrthoNormalize()

RMAPI void Vector3OrthoNormalize ( Vector3 v1,
Vector3 v2 
)

Definition at line 688 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Perpendicular()

RMAPI Vector3 Vector3Perpendicular ( Vector3  v)

Definition at line 562 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Reflect()

RMAPI Vector3 Vector3Reflect ( Vector3  v,
Vector3  normal 
)

Definition at line 761 of file raymath.h.

◆ Vector3Refract()

RMAPI Vector3 Vector3Refract ( Vector3  v,
Vector3  n,
float  r 
)

Definition at line 988 of file raymath.h.

◆ Vector3RotateByQuaternion()

RMAPI Vector3 Vector3RotateByQuaternion ( Vector3  v,
Quaternion  q 
)

Definition at line 737 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Scale()

RMAPI Vector3 Vector3Scale ( Vector3  v,
float  scalar 
)

Definition at line 538 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Subtract()

RMAPI Vector3 Vector3Subtract ( Vector3  v1,
Vector3  v2 
)

Definition at line 522 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3SubtractValue()

RMAPI Vector3 Vector3SubtractValue ( Vector3  v,
float  sub 
)

Definition at line 530 of file raymath.h.

◆ Vector3ToFloatV()

RMAPI float3 Vector3ToFloatV ( Vector3  v)

Definition at line 911 of file raymath.h.

◆ Vector3Transform()

RMAPI Vector3 Vector3Transform ( Vector3  v,
Matrix  mat 
)

Definition at line 721 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Unproject()

RMAPI Vector3 Vector3Unproject ( Vector3  source,
Matrix  projection,
Matrix  view 
)

Definition at line 828 of file raymath.h.

+ Here is the caller graph for this function:

◆ Vector3Zero()

RMAPI Vector3 Vector3Zero ( void  )

Definition at line 490 of file raymath.h.