diff options
Diffstat (limited to 'src/rmath.c')
| -rw-r--r-- | src/rmath.c | 424 |
1 files changed, 212 insertions, 212 deletions
diff --git a/src/rmath.c b/src/rmath.c index a83eac4..26054e4 100644 --- a/src/rmath.c +++ b/src/rmath.c @@ -16,7 +16,7 @@ inline int imax( int a, int b ) { */ /* -> result = RL_Clamp( float value, float min, float max ) +> result = RL.Clamp( float value, float min, float max ) Clamp float value @@ -25,7 +25,7 @@ Clamp float value */ int lmathClamp( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Clamp( float value, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Clamp( float value, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -39,7 +39,7 @@ int lmathClamp( lua_State *L ) { } /* -> result = RL_Lerp( float start, float end, float amount ) +> result = RL.Lerp( float start, float end, float amount ) Calculate linear interpolation between two floats @@ -48,7 +48,7 @@ Calculate linear interpolation between two floats */ int lmathLerp( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Lerp( float start, float end, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Lerp( float start, float end, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -62,7 +62,7 @@ int lmathLerp( lua_State *L ) { } /* -> result = RL_Normalize( float value, float start, float end ) +> result = RL.Normalize( float value, float start, float end ) Normalize input value within input range @@ -71,7 +71,7 @@ Normalize input value within input range */ int lmathNormalize( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Normalize( float value, float start, float end )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Normalize( float value, float start, float end )" ); lua_pushboolean( L, false ); return 1; } @@ -85,7 +85,7 @@ int lmathNormalize( lua_State *L ) { } /* -> result = RL_Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd ) +> result = RL.Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd ) Remap input value within input range to output range @@ -95,7 +95,7 @@ Remap input value within input range to output range int lmathRemap( lua_State *L ) { if ( !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Remap( float value, float inputStart, float inputEnd, float outputStart, float outputEnd )" ); lua_pushboolean( L, false ); return 1; } @@ -111,7 +111,7 @@ int lmathRemap( lua_State *L ) { } /* -> result = RL_Wrap( float value, float min, float max ) +> result = RL.Wrap( float value, float min, float max ) Wrap input value from min to max @@ -120,7 +120,7 @@ Wrap input value from min to max */ int lmathWrap( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Wrap( float value, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Wrap( float value, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -134,7 +134,7 @@ int lmathWrap( lua_State *L ) { } /* -> result = RL_FloatEquals( float x, float y ) +> result = RL.FloatEquals( float x, float y ) Check whether two given floats are almost equal @@ -143,7 +143,7 @@ Check whether two given floats are almost equal */ int lmathFloatEquals( lua_State *L ) { if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_FloatEquals( float x, float y )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.FloatEquals( float x, float y )" ); lua_pushboolean( L, false ); return 1; } @@ -160,7 +160,7 @@ int lmathFloatEquals( lua_State *L ) { */ /* -> result = RL_Vector2Zero() +> result = RL.Vector2Zero() Vector with components value 0.0f @@ -173,7 +173,7 @@ int lmathVector2Zero( lua_State *L ) { } /* -> result = RL_Vector2One() +> result = RL.Vector2One() Vector with components value 1.0f @@ -186,7 +186,7 @@ int lmathVector2One( lua_State *L ) { } /* -> result = RL_Vector2Add( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Add( Vector2 v1, Vector2 v2 ) Add two vectors (v1 + v2) @@ -195,7 +195,7 @@ Add two vectors (v1 + v2) */ int lmathVector2Add( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Add( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Add( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -209,7 +209,7 @@ int lmathVector2Add( lua_State *L ) { } /* -> result = RL_Vector2AddValue( Vector2 v, float add ) +> result = RL.Vector2AddValue( Vector2 v, float add ) Add vector and float value @@ -218,7 +218,7 @@ Add vector and float value */ int lmathVector2AddValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2AddValue( Vector2 v, float add )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2AddValue( Vector2 v, float add )" ); lua_pushboolean( L, false ); return 1; } @@ -232,7 +232,7 @@ int lmathVector2AddValue( lua_State *L ) { } /* -> result = RL_Vector2Subtract( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Subtract( Vector2 v1, Vector2 v2 ) Subtract two vectors (v1 - v2) @@ -241,7 +241,7 @@ Subtract two vectors (v1 - v2) */ int lmathVector2Subtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Subtract( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Subtract( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -255,7 +255,7 @@ int lmathVector2Subtract( lua_State *L ) { } /* -> result = RL_Vector2SubtractValue( Vector2 v, float sub ) +> result = RL.Vector2SubtractValue( Vector2 v, float sub ) Subtract vector by float value @@ -264,7 +264,7 @@ Subtract vector by float value */ int lmathVector2SubtractValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2SubtractValue( Vector2 v, float sub )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2SubtractValue( Vector2 v, float sub )" ); lua_pushboolean( L, false ); return 1; } @@ -278,7 +278,7 @@ int lmathVector2SubtractValue( lua_State *L ) { } /* -> result = RL_Vector2Length( vector2 v ) +> result = RL.Vector2Length( vector2 v ) Calculate vector length @@ -287,7 +287,7 @@ Calculate vector length */ int lmathVector2Length( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Length( vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Length( vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -299,7 +299,7 @@ int lmathVector2Length( lua_State *L ) { } /* -> result = RL_Vector2LengthSqr( vector2 v ) +> result = RL.Vector2LengthSqr( vector2 v ) Calculate vector square length @@ -308,7 +308,7 @@ Calculate vector square length */ int lmathVector2LengthSqr( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2LengthSqr( vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2LengthSqr( vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -320,7 +320,7 @@ int lmathVector2LengthSqr( lua_State *L ) { } /* -> result = RL_Vector2DotProduct( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2DotProduct( Vector2 v1, Vector2 v2 ) Calculate two vectors dot product @@ -329,7 +329,7 @@ Calculate two vectors dot product */ int lmathVector2DotProduct( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2DotProduct( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2DotProduct( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -343,7 +343,7 @@ int lmathVector2DotProduct( lua_State *L ) { } /* -> result = RL_Vector2Distance( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Distance( Vector2 v1, Vector2 v2 ) Calculate distance between two vectors @@ -352,7 +352,7 @@ Calculate distance between two vectors */ int lmathVector2Distance( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Distance( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Distance( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -366,7 +366,7 @@ int lmathVector2Distance( lua_State *L ) { } /* -> result = RL_Vector2DistanceSqr( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2DistanceSqr( Vector2 v1, Vector2 v2 ) Calculate square distance between two vectors @@ -375,7 +375,7 @@ Calculate square distance between two vectors */ int lmathVector2DistanceSqr( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2DistanceSqr( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2DistanceSqr( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -389,7 +389,7 @@ int lmathVector2DistanceSqr( lua_State *L ) { } /* -> result = RL_Vector2Angle( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Angle( Vector2 v1, Vector2 v2 ) Calculate angle from two vectors @@ -398,7 +398,7 @@ Calculate angle from two vectors */ int lmathVector2Angle( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Angle( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Angle( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -412,7 +412,7 @@ int lmathVector2Angle( lua_State *L ) { } /* -> result = RL_Vector2Scale( Vector2 v, float scale ) +> result = RL.Vector2Scale( Vector2 v, float scale ) Scale vector ( multiply by value ) @@ -421,7 +421,7 @@ Scale vector ( multiply by value ) */ int lmathVector2Scale( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Scale( Vector2 v, float scale )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Scale( Vector2 v, float scale )" ); lua_pushboolean( L, false ); return 1; } @@ -435,7 +435,7 @@ int lmathVector2Scale( lua_State *L ) { } /* -> result = RL_Vector2Multiply( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Multiply( Vector2 v1, Vector2 v2 ) Multiply vector by vector @@ -444,7 +444,7 @@ Multiply vector by vector */ int lmathVector2Multiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Multiply( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Multiply( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -458,7 +458,7 @@ int lmathVector2Multiply( lua_State *L ) { } /* -> result = RL_Vector2Negate( Vector2 v ) +> result = RL.Vector2Negate( Vector2 v ) Negate vector @@ -467,7 +467,7 @@ Negate vector */ int lmathVector2Negate( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Negate( Vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Negate( Vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -479,7 +479,7 @@ int lmathVector2Negate( lua_State *L ) { } /* -> result = RL_Vector2Divide( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Divide( Vector2 v1, Vector2 v2 ) Divide vector by vector @@ -488,7 +488,7 @@ Divide vector by vector */ int lmathVector2Divide( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Divide( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Divide( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -502,7 +502,7 @@ int lmathVector2Divide( lua_State *L ) { } /* -> result = RL_Vector2Normalize( Vector2 v ) +> result = RL.Vector2Normalize( Vector2 v ) Normalize provided vector @@ -511,7 +511,7 @@ Normalize provided vector */ int lmathVector2Normalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Normalize( Vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Normalize( Vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -523,7 +523,7 @@ int lmathVector2Normalize( lua_State *L ) { } /* -> result = RL_Vector2Transform( Vector2 v, Matrix mat ) +> result = RL.Vector2Transform( Vector2 v, Matrix mat ) Transforms a Vector2 by a given Matrix @@ -532,7 +532,7 @@ Transforms a Vector2 by a given Matrix */ int lmathVector2Transform( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Transform( Vector2 v, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Transform( Vector2 v, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -546,7 +546,7 @@ int lmathVector2Transform( lua_State *L ) { } /* -> result = RL_Vector2Lerp( Vector2 v1, Vector2 v2, float amount ) +> result = RL.Vector2Lerp( Vector2 v1, Vector2 v2, float amount ) Calculate linear interpolation between two vectors @@ -555,7 +555,7 @@ Calculate linear interpolation between two vectors */ int lmathVector2Lerp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Lerp( Vector2 v1, Vector2 v2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Lerp( Vector2 v1, Vector2 v2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -571,7 +571,7 @@ int lmathVector2Lerp( lua_State *L ) { } /* -> result = RL_Vector2Reflect( Vector2 v, Vector2 normal ) +> result = RL.Vector2Reflect( Vector2 v, Vector2 normal ) Calculate reflected vector to normal @@ -580,7 +580,7 @@ Calculate reflected vector to normal */ int lmathVector2Reflect( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Reflect( Vector2 v, Vector2 normal )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Reflect( Vector2 v, Vector2 normal )" ); lua_pushboolean( L, false ); return 1; } @@ -594,7 +594,7 @@ int lmathVector2Reflect( lua_State *L ) { } /* -> result = RL_Vector2Rotate( Vector2 v, float angle ) +> result = RL.Vector2Rotate( Vector2 v, float angle ) Rotate vector by angle @@ -603,7 +603,7 @@ Rotate vector by angle */ int lmathVector2Rotate( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Rotate( Vector2 v, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Rotate( Vector2 v, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -617,7 +617,7 @@ int lmathVector2Rotate( lua_State *L ) { } /* -> result = RL_Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance ) +> result = RL.Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance ) Move Vector towards target @@ -626,7 +626,7 @@ Move Vector towards target */ int lmathVector2MoveTowards( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2MoveTowards( Vector2 v, Vector2 target, float maxDistance )" ); lua_pushboolean( L, false ); return 1; } @@ -642,7 +642,7 @@ int lmathVector2MoveTowards( lua_State *L ) { } /* -> result = RL_Vector2Invert( Vector2 v ) +> result = RL.Vector2Invert( Vector2 v ) Invert the given vector @@ -651,7 +651,7 @@ Invert the given vector */ int lmathVector2Invert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Invert( Vector2 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Invert( Vector2 v )" ); lua_pushboolean( L, false ); return 1; } @@ -663,7 +663,7 @@ int lmathVector2Invert( lua_State *L ) { } /* -> result = RL_Vector2Clamp( Vector2 v, Vector2 min, Vector2 max ) +> result = RL.Vector2Clamp( Vector2 v, Vector2 min, Vector2 max ) Clamp the components of the vector between min and max values specified by the given vectors @@ -673,7 +673,7 @@ min and max values specified by the given vectors */ int lmathVector2Clamp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Clamp( Vector2 v, Vector2 min, Vector2 max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Clamp( Vector2 v, Vector2 min, Vector2 max )" ); lua_pushboolean( L, false ); return 1; } @@ -689,7 +689,7 @@ int lmathVector2Clamp( lua_State *L ) { } /* -> result = RL_Vector2ClampValue( Vector2 v, float min, float max ) +> result = RL.Vector2ClampValue( Vector2 v, float min, float max ) Clamp the magnitude of the vector between two min and max values @@ -698,7 +698,7 @@ Clamp the magnitude of the vector between two min and max values */ int lmathVector2ClampValue( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2ClampValue( Vector2 v, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2ClampValue( Vector2 v, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -714,7 +714,7 @@ int lmathVector2ClampValue( lua_State *L ) { } /* -> result = RL_Vector2Equals( Vector2 v1, Vector2 v2 ) +> result = RL.Vector2Equals( Vector2 v1, Vector2 v2 ) Check whether two given vectors are almost equal @@ -723,7 +723,7 @@ Check whether two given vectors are almost equal */ int lmathVector2Equals( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector2Equals( Vector2 v1, Vector2 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector2Equals( Vector2 v1, Vector2 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -741,7 +741,7 @@ int lmathVector2Equals( lua_State *L ) { */ /* -> result = RL_Vector3Zero() +> result = RL.Vector3Zero() Vector with components value 0.0f @@ -754,7 +754,7 @@ int lmathVector3Zero( lua_State *L ) { } /* -> result = RL_Vector3One() +> result = RL.Vector3One() Vector with components value 1.0f @@ -767,7 +767,7 @@ int lmathVector3One( lua_State *L ) { } /* -> result = RL_Vector3Add( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Add( Vector3 v1, Vector3 v2 ) Add two vectors @@ -776,7 +776,7 @@ Add two vectors */ int lmathVector3Add( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Add( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Add( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -790,7 +790,7 @@ int lmathVector3Add( lua_State *L ) { } /* -> result = RL_Vector3AddValue( Vector3 v, float add ) +> result = RL.Vector3AddValue( Vector3 v, float add ) Add vector and float value @@ -799,7 +799,7 @@ Add vector and float value */ int lmathVector3AddValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3AddValue( Vector3 v, float add )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3AddValue( Vector3 v, float add )" ); lua_pushboolean( L, false ); return 1; } @@ -813,7 +813,7 @@ int lmathVector3AddValue( lua_State *L ) { } /* -> result = RL_Vector3Subtract( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Subtract( Vector3 v1, Vector3 v2 ) Subtract two vectors @@ -822,7 +822,7 @@ Subtract two vectors */ int lmathVector3Subtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Subtract( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Subtract( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -836,7 +836,7 @@ int lmathVector3Subtract( lua_State *L ) { } /* -> result = RL_Vector3SubtractValue( Vector3 v, float sub ) +> result = RL.Vector3SubtractValue( Vector3 v, float sub ) Subtract vector by float value @@ -845,7 +845,7 @@ Subtract vector by float value */ int lmathVector3SubtractValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3SubtractValue( Vector3 v, float sub )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3SubtractValue( Vector3 v, float sub )" ); lua_pushboolean( L, false ); return 1; } @@ -859,7 +859,7 @@ int lmathVector3SubtractValue( lua_State *L ) { } /* -> result = RL_Vector3Scale( Vector3 v, float scalar ) +> result = RL.Vector3Scale( Vector3 v, float scalar ) Multiply vector by scalar @@ -868,7 +868,7 @@ Multiply vector by scalar */ int lmathVector3Scale( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Scale( Vector3 v, float scalar )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Scale( Vector3 v, float scalar )" ); lua_pushboolean( L, false ); return 1; } @@ -882,7 +882,7 @@ int lmathVector3Scale( lua_State *L ) { } /* -> result = RL_Vector3Multiply( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Multiply( Vector3 v1, Vector3 v2 ) Multiply vector by vector @@ -891,7 +891,7 @@ Multiply vector by vector */ int lmathVector3Multiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Multiply( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Multiply( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -905,7 +905,7 @@ int lmathVector3Multiply( lua_State *L ) { } /* -> result = RL_Vector3CrossProduct( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3CrossProduct( Vector3 v1, Vector3 v2 ) Calculate two vectors cross product @@ -914,7 +914,7 @@ Calculate two vectors cross product */ int lmathVector3CrossProduct( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3CrossProduct( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3CrossProduct( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -928,7 +928,7 @@ int lmathVector3CrossProduct( lua_State *L ) { } /* -> result = RL_Vector3Perpendicular( Vector3 v ) +> result = RL.Vector3Perpendicular( Vector3 v ) Calculate one vector perpendicular vector @@ -937,7 +937,7 @@ Calculate one vector perpendicular vector */ int lmathVector3Perpendicular( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Perpendicular( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Perpendicular( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -949,7 +949,7 @@ int lmathVector3Perpendicular( lua_State *L ) { } /* -> result = RL_Vector3Length( Vector3 v ) +> result = RL.Vector3Length( Vector3 v ) Calculate vector length @@ -958,7 +958,7 @@ Calculate vector length */ int lmathVector3Length( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Length( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Length( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -970,7 +970,7 @@ int lmathVector3Length( lua_State *L ) { } /* -> result = RL_Vector3LengthSqr( Vector3 v ) +> result = RL.Vector3LengthSqr( Vector3 v ) Calculate vector square length @@ -979,7 +979,7 @@ Calculate vector square length */ int lmathVector3LengthSqr( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3LengthSqr( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3LengthSqr( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -991,7 +991,7 @@ int lmathVector3LengthSqr( lua_State *L ) { } /* -> result = RL_Vector3DotProduct( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3DotProduct( Vector3 v1, Vector3 v2 ) Calculate two vectors dot product @@ -1000,7 +1000,7 @@ Calculate two vectors dot product */ int lmathVector3DotProduct( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3DotProduct( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3DotProduct( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1014,7 +1014,7 @@ int lmathVector3DotProduct( lua_State *L ) { } /* -> result = RL_Vector3Distance( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Distance( Vector3 v1, Vector3 v2 ) Calculate distance between two vectors @@ -1023,7 +1023,7 @@ Calculate distance between two vectors */ int lmathVector3Distance( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Distance( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Distance( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1037,7 +1037,7 @@ int lmathVector3Distance( lua_State *L ) { } /* -> result = RL_Vector3DistanceSqr( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3DistanceSqr( Vector3 v1, Vector3 v2 ) Calculate square distance between two vectors @@ -1046,7 +1046,7 @@ Calculate square distance between two vectors */ int lmathVector3DistanceSqr( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3DistanceSqr( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3DistanceSqr( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1060,7 +1060,7 @@ int lmathVector3DistanceSqr( lua_State *L ) { } /* -> result = RL_Vector3Angle( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Angle( Vector3 v1, Vector3 v2 ) Calculate angle between two vectors @@ -1069,7 +1069,7 @@ Calculate angle between two vectors */ int lmathVector3Angle( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Angle( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Angle( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1083,7 +1083,7 @@ int lmathVector3Angle( lua_State *L ) { } /* -> result = RL_Vector3Negate( Vector3 v ) +> result = RL.Vector3Negate( Vector3 v ) Negate provided vector ( invert direction ) @@ -1092,7 +1092,7 @@ Negate provided vector ( invert direction ) */ int lmathVector3Negate( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Negate( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Negate( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -1104,7 +1104,7 @@ int lmathVector3Negate( lua_State *L ) { } /* -> result = RL_Vector3Divide( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Divide( Vector3 v1, Vector3 v2 ) Divide vector by vector @@ -1113,7 +1113,7 @@ Divide vector by vector */ int lmathVector3Divide( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Divide( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Divide( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1127,7 +1127,7 @@ int lmathVector3Divide( lua_State *L ) { } /* -> result = RL_Vector3Normalize( Vector3 v ) +> result = RL.Vector3Normalize( Vector3 v ) Normalize provided vector @@ -1136,7 +1136,7 @@ Normalize provided vector */ int lmathVector3Normalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Normalize( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Normalize( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -1148,7 +1148,7 @@ int lmathVector3Normalize( lua_State *L ) { } /* -> v1, v2 = RL_Vector3OrthoNormalize( Vector3 v1, Vector3 v2 ) +> v1, v2 = RL.Vector3OrthoNormalize( Vector3 v1, Vector3 v2 ) Orthonormalize provided vectors. Makes vectors normalized and orthogonal to each other. Gram-Schmidt function implementation @@ -1158,7 +1158,7 @@ Gram-Schmidt function implementation */ int lmathVector3OrthoNormalize( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3OrthoNormalize( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3OrthoNormalize( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1175,7 +1175,7 @@ int lmathVector3OrthoNormalize( lua_State *L ) { } /* -> result = RL_Vector3Transform( Vector3 v, Matrix mat ) +> result = RL.Vector3Transform( Vector3 v, Matrix mat ) Transforms a Vector3 by a given Matrix @@ -1184,7 +1184,7 @@ Transforms a Vector3 by a given Matrix */ int lmathVector3Transform( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Transform( Vector3 v, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Transform( Vector3 v, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1198,7 +1198,7 @@ int lmathVector3Transform( lua_State *L ) { } /* -> result = RL_Vector3RotateByQuaternion( Vector3 v, Quaternion q ) +> result = RL.Vector3RotateByQuaternion( Vector3 v, Quaternion q ) Transform a vector by quaternion rotation @@ -1207,7 +1207,7 @@ Transform a vector by quaternion rotation */ int lmathVector3RotateByQuaternion( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3RotateByQuaternion( Vector3 v, Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3RotateByQuaternion( Vector3 v, Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -1221,7 +1221,7 @@ int lmathVector3RotateByQuaternion( lua_State *L ) { } /* -> result = RL_Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle ) +> result = RL.Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle ) Rotates a vector around an axis @@ -1230,7 +1230,7 @@ Rotates a vector around an axis */ int lmathVector3RotateByAxisAngle( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3RotateByAxisAngle( Vector3 v, Vector3 axis, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1246,7 +1246,7 @@ int lmathVector3RotateByAxisAngle( lua_State *L ) { } /* -> result = RL_Vector3Lerp( Vector3 v1, Vector3 v2, float amount ) +> result = RL.Vector3Lerp( Vector3 v1, Vector3 v2, float amount ) Calculate linear interpolation between two vectors @@ -1255,7 +1255,7 @@ Calculate linear interpolation between two vectors */ int lmathVector3Lerp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Lerp( Vector3 v1, Vector3 v2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Lerp( Vector3 v1, Vector3 v2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -1271,7 +1271,7 @@ int lmathVector3Lerp( lua_State *L ) { } /* -> result = RL_Vector3Reflect( Vector3 v, Vector3 normal ) +> result = RL.Vector3Reflect( Vector3 v, Vector3 normal ) Calculate reflected vector to normal @@ -1280,7 +1280,7 @@ Calculate reflected vector to normal */ int lmathVector3Reflect( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Reflect( Vector3 v, Vector3 normal )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Reflect( Vector3 v, Vector3 normal )" ); lua_pushboolean( L, false ); return 1; } @@ -1294,7 +1294,7 @@ int lmathVector3Reflect( lua_State *L ) { } /* -> result = RL_Vector3Min( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Min( Vector3 v1, Vector3 v2 ) Get min value for each pair of components @@ -1303,7 +1303,7 @@ Get min value for each pair of components */ int lmathVector3Min( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Min( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Min( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1317,7 +1317,7 @@ int lmathVector3Min( lua_State *L ) { } /* -> result = RL_Vector3Max( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Max( Vector3 v1, Vector3 v2 ) Get max value for each pair of components @@ -1326,7 +1326,7 @@ Get max value for each pair of components */ int lmathVector3Max( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Max( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Max( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1340,7 +1340,7 @@ int lmathVector3Max( lua_State *L ) { } /* -> result = RL_Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c ) +> result = RL.Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c ) Compute barycenter coordinates ( u, v, w ) for point p with respect to triangle ( a, b, c ) NOTE: Assumes P is on the plane of the triangle @@ -1350,7 +1350,7 @@ NOTE: Assumes P is on the plane of the triangle */ int lmathVector3Barycenter( lua_State *L ) { if ( !lua_istable( L, -4 ) || !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Barycenter( Vector3 p, Vector3 a, Vector3 b, Vector3 c )" ); lua_pushboolean( L, false ); return 1; } @@ -1368,7 +1368,7 @@ int lmathVector3Barycenter( lua_State *L ) { } /* -> result = RL_Vector3Unproject( Vector3 source, Matrix projection, Matrix view ) +> result = RL.Vector3Unproject( Vector3 source, Matrix projection, Matrix view ) Projects a Vector3 from screen space into object space NOTE: We are avoiding calling other raymath functions despite available @@ -1378,7 +1378,7 @@ NOTE: We are avoiding calling other raymath functions despite available */ int lmathVector3Unproject( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Unproject( Vector3 source, Matrix projection, Matrix view )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Unproject( Vector3 source, Matrix projection, Matrix view )" ); lua_pushboolean( L, false ); return 1; } @@ -1394,7 +1394,7 @@ int lmathVector3Unproject( lua_State *L ) { } /* -> result = RL_Vector3Invert( Vector3 v ) +> result = RL.Vector3Invert( Vector3 v ) Invert the given vector @@ -1403,7 +1403,7 @@ Invert the given vector */ int lmathVector3Invert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Invert( Vector3 v )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Invert( Vector3 v )" ); lua_pushboolean( L, false ); return 1; } @@ -1415,7 +1415,7 @@ int lmathVector3Invert( lua_State *L ) { } /* -> result = RL_Vector3Clamp( Vector3 v, Vector3 min, Vector3 max ) +> result = RL.Vector3Clamp( Vector3 v, Vector3 min, Vector3 max ) Clamp the components of the vector between min and max values specified by the given vectors @@ -1425,7 +1425,7 @@ min and max values specified by the given vectors */ int lmathVector3Clamp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Clamp( Vector3 v, Vector3 min, Vector3 max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Clamp( Vector3 v, Vector3 min, Vector3 max )" ); lua_pushboolean( L, false ); return 1; } @@ -1441,7 +1441,7 @@ int lmathVector3Clamp( lua_State *L ) { } /* -> result = RL_Vector3ClampValue( Vector3 v, float min, float max ) +> result = RL.Vector3ClampValue( Vector3 v, float min, float max ) Clamp the magnitude of the vector between two values @@ -1450,7 +1450,7 @@ Clamp the magnitude of the vector between two values */ int lmathVector3ClampValue( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3ClampValue( Vector3 v, float min, float max )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3ClampValue( Vector3 v, float min, float max )" ); lua_pushboolean( L, false ); return 1; } @@ -1466,7 +1466,7 @@ int lmathVector3ClampValue( lua_State *L ) { } /* -> result = RL_Vector3Equals( Vector3 v1, Vector3 v2 ) +> result = RL.Vector3Equals( Vector3 v1, Vector3 v2 ) Check whether two given vectors are almost equal @@ -1475,7 +1475,7 @@ Check whether two given vectors are almost equal */ int lmathVector3Equals( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Equals( Vector3 v1, Vector3 v2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Equals( Vector3 v1, Vector3 v2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1489,7 +1489,7 @@ int lmathVector3Equals( lua_State *L ) { } /* -> result = RL_Vector3Refract( Vector3 v, Vector3 n, float r ) +> result = RL.Vector3Refract( Vector3 v, Vector3 n, float r ) Compute the direction of a refracted ray where v specifies the normalized direction of the incoming ray, n specifies the @@ -1503,7 +1503,7 @@ on the other side of the surface */ int lmathVector3Refract( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_Vector3Refract( Vector3 v, Vector3 n, float r )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.Vector3Refract( Vector3 v, Vector3 n, float r )" ); lua_pushboolean( L, false ); return 1; } @@ -1523,7 +1523,7 @@ int lmathVector3Refract( lua_State *L ) { */ /* -> result = RL_MatrixDeterminant( Matrix mat ) +> result = RL.MatrixDeterminant( Matrix mat ) Compute matrix determinant @@ -1532,7 +1532,7 @@ Compute matrix determinant */ int lmathMatrixDeterminant( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixDeterminant( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixDeterminant( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1544,7 +1544,7 @@ int lmathMatrixDeterminant( lua_State *L ) { } /* -> result = RL_MatrixTrace( Matrix mat ) +> result = RL.MatrixTrace( Matrix mat ) Get the trace of the matrix ( sum of the values along the diagonal ) @@ -1553,7 +1553,7 @@ Get the trace of the matrix ( sum of the values along the diagonal ) */ int lmathMatrixTrace( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixTrace( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixTrace( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1565,7 +1565,7 @@ int lmathMatrixTrace( lua_State *L ) { } /* -> result = RL_MatrixTranspose( Matrix mat ) +> result = RL.MatrixTranspose( Matrix mat ) Transposes provided matrix @@ -1574,7 +1574,7 @@ Transposes provided matrix */ int lmathMatrixTranspose( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixTranspose( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixTranspose( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1586,7 +1586,7 @@ int lmathMatrixTranspose( lua_State *L ) { } /* -> result = RL_MatrixInvert( Matrix mat ) +> result = RL.MatrixInvert( Matrix mat ) Invert provided matrix @@ -1595,7 +1595,7 @@ Invert provided matrix */ int lmathMatrixInvert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixInvert( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixInvert( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -1607,7 +1607,7 @@ int lmathMatrixInvert( lua_State *L ) { } /* -> result = RL_MatrixIdentity() +> result = RL.MatrixIdentity() Get identity matrix @@ -1620,7 +1620,7 @@ int lmathMatrixIdentity( lua_State *L ) { } /* -> result = RL_MatrixAdd( Matrix left, Matrix right ) +> result = RL.MatrixAdd( Matrix left, Matrix right ) Add two matrices @@ -1629,7 +1629,7 @@ Add two matrices */ int lmathMatrixAdd( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixAdd( Matrix left, Matrix right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixAdd( Matrix left, Matrix right )" ); lua_pushboolean( L, false ); return 1; } @@ -1643,7 +1643,7 @@ int lmathMatrixAdd( lua_State *L ) { } /* -> result = RL_MatrixSubtract( Matrix left, Matrix right ) +> result = RL.MatrixSubtract( Matrix left, Matrix right ) Subtract two matrices (left - right) @@ -1652,7 +1652,7 @@ Subtract two matrices (left - right) */ int lmathMatrixSubtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixSubtract( Matrix left, Matrix right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixSubtract( Matrix left, Matrix right )" ); lua_pushboolean( L, false ); return 1; } @@ -1666,7 +1666,7 @@ int lmathMatrixSubtract( lua_State *L ) { } /* -> result = RL_MatrixMultiply( Matrix left, Matrix right ) +> result = RL.MatrixMultiply( Matrix left, Matrix right ) Get two matrix multiplication @@ -1675,7 +1675,7 @@ Get two matrix multiplication */ int lmathMatrixMultiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixMultiply( Matrix left, Matrix right )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixMultiply( Matrix left, Matrix right )" ); lua_pushboolean( L, false ); return 1; } @@ -1689,7 +1689,7 @@ int lmathMatrixMultiply( lua_State *L ) { } /* -> result = RL_MatrixTranslate( Vector3 translate ) +> result = RL.MatrixTranslate( Vector3 translate ) Get translation matrix @@ -1698,7 +1698,7 @@ Get translation matrix */ int lmathMatrixTranslate( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixTranslate( Vector3 translate )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixTranslate( Vector3 translate )" ); lua_pushboolean( L, false ); return 1; } @@ -1710,7 +1710,7 @@ int lmathMatrixTranslate( lua_State *L ) { } /* -> result = RL_MatrixRotate( Vector3 axis, float angle ) +> result = RL.MatrixRotate( Vector3 axis, float angle ) Create rotation matrix from axis and angle. NOTE: Angle should be provided in radians @@ -1719,7 +1719,7 @@ Create rotation matrix from axis and angle. NOTE: Angle should be provided in ra */ int lmathMatrixRotate( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotate( Vector3 axis, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotate( Vector3 axis, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1733,7 +1733,7 @@ int lmathMatrixRotate( lua_State *L ) { } /* -> result = RL_MatrixRotateX( float angle ) +> result = RL.MatrixRotateX( float angle ) Get x-rotation matrix ( angle in radians ) @@ -1742,7 +1742,7 @@ Get x-rotation matrix ( angle in radians ) */ int lmathMatrixRotateX( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateX( float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateX( float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1754,7 +1754,7 @@ int lmathMatrixRotateX( lua_State *L ) { } /* -> result = RL_MatrixRotateY( float angle ) +> result = RL.MatrixRotateY( float angle ) Get y-rotation matrix ( angle in radians ) @@ -1763,7 +1763,7 @@ Get y-rotation matrix ( angle in radians ) */ int lmathMatrixRotateY( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateY( float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateY( float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1775,7 +1775,7 @@ int lmathMatrixRotateY( lua_State *L ) { } /* -> result = RL_MatrixRotateZ( float angle ) +> result = RL.MatrixRotateZ( float angle ) Get z-rotation matrix ( angle in radians ) @@ -1784,7 +1784,7 @@ Get z-rotation matrix ( angle in radians ) */ int lmathMatrixRotateZ( lua_State *L ) { if ( !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateZ( float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateZ( float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1796,7 +1796,7 @@ int lmathMatrixRotateZ( lua_State *L ) { } /* -> result = RL_MatrixRotateXYZ( Vector3 angle ) +> result = RL.MatrixRotateXYZ( Vector3 angle ) Get xyz-rotation matrix ( angles in radians ) @@ -1805,7 +1805,7 @@ Get xyz-rotation matrix ( angles in radians ) */ int lmathMatrixRotateXYZ( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateXYZ( Vector3 angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateXYZ( Vector3 angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1817,7 +1817,7 @@ int lmathMatrixRotateXYZ( lua_State *L ) { } /* -> result = RL_MatrixRotateZYX( Vector3 angle ) +> result = RL.MatrixRotateZYX( Vector3 angle ) Get zyx-rotation matrix ( angles in radians ) @@ -1826,7 +1826,7 @@ Get zyx-rotation matrix ( angles in radians ) */ int lmathMatrixRotateZYX( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixRotateZYX( Vector3 angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixRotateZYX( Vector3 angle )" ); lua_pushboolean( L, false ); return 1; } @@ -1838,7 +1838,7 @@ int lmathMatrixRotateZYX( lua_State *L ) { } /* -> result = RL_MatrixScale( Vector3 scale ) +> result = RL.MatrixScale( Vector3 scale ) Get scaling matrix @@ -1847,7 +1847,7 @@ Get scaling matrix */ int lmathMatrixScale( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixScale( Vector3 scale )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixScale( Vector3 scale )" ); lua_pushboolean( L, false ); return 1; } @@ -1859,7 +1859,7 @@ int lmathMatrixScale( lua_State *L ) { } /* -> result = RL_MatrixFrustum( double left, double right, double bottom, double top, double near, double far ) +> result = RL.MatrixFrustum( double left, double right, double bottom, double top, double near, double far ) Get perspective projection matrix @@ -1869,7 +1869,7 @@ Get perspective projection matrix int lmathMatrixFrustum( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixFrustum( double left, double right, double bottom, double top, double near, double far )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixFrustum( double left, double right, double bottom, double top, double near, double far )" ); lua_pushboolean( L, false ); return 1; } @@ -1886,7 +1886,7 @@ int lmathMatrixFrustum( lua_State *L ) { } /* -> result = RL_MatrixPerspective( double fovy, double aspect, double near, double far ) +> result = RL.MatrixPerspective( double fovy, double aspect, double near, double far ) Get perspective projection matrix @@ -1895,7 +1895,7 @@ Get perspective projection matrix */ int lmathMatrixPerspective( lua_State *L ) { if ( !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixPerspective( double fovy, double aspect, double near, double far )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixPerspective( double fovy, double aspect, double near, double far )" ); lua_pushboolean( L, false ); return 1; } @@ -1910,7 +1910,7 @@ int lmathMatrixPerspective( lua_State *L ) { } /* -> result = RL_MatrixOrtho( double left, double right, double bottom, double top, double near, double far ) +> result = RL.MatrixOrtho( double left, double right, double bottom, double top, double near, double far ) Get orthographic projection matrix @@ -1920,7 +1920,7 @@ Get orthographic projection matrix int lmathMatrixOrtho( lua_State *L ) { if ( !lua_isnumber( L, -6 ) || !lua_isnumber( L, -5 ) || !lua_isnumber( L, -4 ) || !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixOrtho( double left, double right, double bottom, double top, double near, double far )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixOrtho( double left, double right, double bottom, double top, double near, double far )" ); lua_pushboolean( L, false ); return 1; } @@ -1937,7 +1937,7 @@ int lmathMatrixOrtho( lua_State *L ) { } /* -> result = RL_MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up ) +> result = RL.MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up ) Get camera look-at matrix ( View matrix ) @@ -1946,7 +1946,7 @@ Get camera look-at matrix ( View matrix ) */ int lmathMatrixLookAt( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.MatrixLookAt( Vector3 eye, Vector3 target, Vector3 up )" ); lua_pushboolean( L, false ); return 1; } @@ -1966,7 +1966,7 @@ int lmathMatrixLookAt( lua_State *L ) { */ /* -> result = RL_QuaternionAdd( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionAdd( Quaternion q1, Quaternion q2 ) Add two quaternions @@ -1975,7 +1975,7 @@ Add two quaternions */ int lmathQuaternionAdd( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionAdd( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionAdd( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -1989,7 +1989,7 @@ int lmathQuaternionAdd( lua_State *L ) { } /* -> result = RL_QuaternionAddValue( Quaternion q, float add ) +> result = RL.QuaternionAddValue( Quaternion q, float add ) Add quaternion and float value @@ -1998,7 +1998,7 @@ Add quaternion and float value */ int lmathQuaternionAddValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionAddValue( Quaternion q, float add )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionAddValue( Quaternion q, float add )" ); lua_pushboolean( L, false ); return 1; } @@ -2012,7 +2012,7 @@ int lmathQuaternionAddValue( lua_State *L ) { } /* -> result = RL_QuaternionSubtract( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionSubtract( Quaternion q1, Quaternion q2 ) Subtract two quaternions @@ -2021,7 +2021,7 @@ Subtract two quaternions */ int lmathQuaternionSubtract( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionSubtract( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionSubtract( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -2035,7 +2035,7 @@ int lmathQuaternionSubtract( lua_State *L ) { } /* -> result = RL_QuaternionSubtractValue( Quaternion q, float sub ) +> result = RL.QuaternionSubtractValue( Quaternion q, float sub ) Subtract quaternion and float value @@ -2044,7 +2044,7 @@ Subtract quaternion and float value */ int lmathQuaternionSubtractValue( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionSubtractValue( Quaternion q, float sub )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionSubtractValue( Quaternion q, float sub )" ); lua_pushboolean( L, false ); return 1; } @@ -2058,7 +2058,7 @@ int lmathQuaternionSubtractValue( lua_State *L ) { } /* -> result = RL_QuaternionIdentity() +> result = RL.QuaternionIdentity() Get identity quaternion @@ -2071,7 +2071,7 @@ int lmathQuaternionIdentity( lua_State *L ) { } /* -> result = RL_QuaternionLength( Quaternion q ) +> result = RL.QuaternionLength( Quaternion q ) Computes the length of a quaternion @@ -2080,7 +2080,7 @@ Computes the length of a quaternion */ int lmathQuaternionLength( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionLength( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionLength( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2092,7 +2092,7 @@ int lmathQuaternionLength( lua_State *L ) { } /* -> result = RL_QuaternionNormalize( Quaternion q ) +> result = RL.QuaternionNormalize( Quaternion q ) Normalize provided quaternion @@ -2101,7 +2101,7 @@ Normalize provided quaternion */ int lmathQuaternionNormalize( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionNormalize( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionNormalize( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2113,7 +2113,7 @@ int lmathQuaternionNormalize( lua_State *L ) { } /* -> result = RL_QuaternionInvert( Quaternion q ) +> result = RL.QuaternionInvert( Quaternion q ) Invert provided quaternion @@ -2122,7 +2122,7 @@ Invert provided quaternion */ int lmathQuaternionInvert( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionInvert( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionInvert( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2134,7 +2134,7 @@ int lmathQuaternionInvert( lua_State *L ) { } /* -> result = RL_QuaternionMultiply( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionMultiply( Quaternion q1, Quaternion q2 ) Calculate two quaternion multiplication @@ -2143,7 +2143,7 @@ Calculate two quaternion multiplication */ int lmathQuaternionMultiply( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionMultiply( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionMultiply( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -2157,7 +2157,7 @@ int lmathQuaternionMultiply( lua_State *L ) { } /* -> result = RL_QuaternionScale( Quaternion q, float mul ) +> result = RL.QuaternionScale( Quaternion q, float mul ) Scale quaternion by float value @@ -2166,7 +2166,7 @@ Scale quaternion by float value */ int lmathQuaternionScale( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionScale( Quaternion q, float mul )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionScale( Quaternion q, float mul )" ); lua_pushboolean( L, false ); return 1; } @@ -2180,7 +2180,7 @@ int lmathQuaternionScale( lua_State *L ) { } /* -> result = RL_QuaternionDivide( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionDivide( Quaternion q1, Quaternion q2 ) Divide two quaternions @@ -2189,7 +2189,7 @@ Divide two quaternions */ int lmathQuaternionDivide( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionDivide( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionDivide( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } @@ -2203,7 +2203,7 @@ int lmathQuaternionDivide( lua_State *L ) { } /* -> result = RL_QuaternionLerp( Quaternion q1, Quaternion q2, float amount ) +> result = RL.QuaternionLerp( Quaternion q1, Quaternion q2, float amount ) Calculate linear interpolation between two quaternions @@ -2212,7 +2212,7 @@ Calculate linear interpolation between two quaternions */ int lmathQuaternionLerp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionLerp( Quaternion q1, Quaternion q2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionLerp( Quaternion q1, Quaternion q2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -2228,7 +2228,7 @@ int lmathQuaternionLerp( lua_State *L ) { } /* -> result = RL_QuaternionNlerp( Quaternion q1, Quaternion q2, float amount ) +> result = RL.QuaternionNlerp( Quaternion q1, Quaternion q2, float amount ) Calculate slerp-optimized interpolation between two quaternions @@ -2237,7 +2237,7 @@ Calculate slerp-optimized interpolation between two quaternions */ int lmathQuaternionNlerp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionNlerp( Quaternion q1, Quaternion q2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionNlerp( Quaternion q1, Quaternion q2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -2253,7 +2253,7 @@ int lmathQuaternionNlerp( lua_State *L ) { } /* -> result = RL_QuaternionSlerp( Quaternion q1, Quaternion q2, float amount ) +> result = RL.QuaternionSlerp( Quaternion q1, Quaternion q2, float amount ) Calculates spherical linear interpolation between two quaternions @@ -2262,7 +2262,7 @@ Calculates spherical linear interpolation between two quaternions */ int lmathQuaternionSlerp( lua_State *L ) { if ( !lua_istable( L, -3 ) || !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionSlerp( Quaternion q1, Quaternion q2, float amount )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionSlerp( Quaternion q1, Quaternion q2, float amount )" ); lua_pushboolean( L, false ); return 1; } @@ -2278,7 +2278,7 @@ int lmathQuaternionSlerp( lua_State *L ) { } /* -> result = RL_QuaternionFromVector3ToVector3( Vector3 from, Vector3 to ) +> result = RL.QuaternionFromVector3ToVector3( Vector3 from, Vector3 to ) Calculate quaternion based on the rotation from one vector to another @@ -2287,7 +2287,7 @@ Calculate quaternion based on the rotation from one vector to another */ int lmathQuaternionFromVector3ToVector3( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromVector3ToVector3( Vector3 from, Vector3 to )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromVector3ToVector3( Vector3 from, Vector3 to )" ); lua_pushboolean( L, false ); return 1; } @@ -2301,7 +2301,7 @@ int lmathQuaternionFromVector3ToVector3( lua_State *L ) { } /* -> result = RL_QuaternionFromMatrix( Matrix mat ) +> result = RL.QuaternionFromMatrix( Matrix mat ) Get a quaternion for a given rotation matrix @@ -2310,7 +2310,7 @@ Get a quaternion for a given rotation matrix */ int lmathQuaternionFromMatrix( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromMatrix( Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromMatrix( Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -2322,7 +2322,7 @@ int lmathQuaternionFromMatrix( lua_State *L ) { } /* -> result = RL_QuaternionToMatrix( Quaternion q ) +> result = RL.QuaternionToMatrix( Quaternion q ) Get a quaternion for a given rotation matrix @@ -2331,7 +2331,7 @@ Get a quaternion for a given rotation matrix */ int lmathQuaternionToMatrix( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionToMatrix( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionToMatrix( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2343,7 +2343,7 @@ int lmathQuaternionToMatrix( lua_State *L ) { } /* -> result = RL_QuaternionFromAxisAngle( Vector3 axis, float angle ) +> result = RL.QuaternionFromAxisAngle( Vector3 axis, float angle ) Get rotation quaternion for an angle and axis NOTE: angle must be provided in radians @@ -2353,7 +2353,7 @@ NOTE: angle must be provided in radians */ int lmathQuaternionFromAxisAngle( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromAxisAngle( Vector3 axis, float angle )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromAxisAngle( Vector3 axis, float angle )" ); lua_pushboolean( L, false ); return 1; } @@ -2367,7 +2367,7 @@ int lmathQuaternionFromAxisAngle( lua_State *L ) { } /* -> axis, angle = RL_QuaternionToAxisAngle( Quaternion q ) +> axis, angle = RL.QuaternionToAxisAngle( Quaternion q ) Get the rotation angle and axis for a given quaternion @@ -2376,7 +2376,7 @@ Get the rotation angle and axis for a given quaternion */ int lmathQuaternionToAxisAngle( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionToAxisAngle( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionToAxisAngle( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2393,7 +2393,7 @@ int lmathQuaternionToAxisAngle( lua_State *L ) { } /* -> result = RL_QuaternionFromEuler( float pitch, float yaw, float roll ) +> result = RL.QuaternionFromEuler( float pitch, float yaw, float roll ) Get the quaternion equivalent to Euler angles NOTE: Rotation order is ZYX @@ -2403,7 +2403,7 @@ NOTE: Rotation order is ZYX */ int lmathQuaternionFromEuler( lua_State *L ) { if ( !lua_isnumber( L, -3 ) || !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionFromEuler( float pitch, float yaw, float roll )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionFromEuler( float pitch, float yaw, float roll )" ); lua_pushboolean( L, false ); return 1; } @@ -2417,7 +2417,7 @@ int lmathQuaternionFromEuler( lua_State *L ) { } /* -> result = RL_QuaternionToEuler( Quaternion q ) +> result = RL.QuaternionToEuler( Quaternion q ) Get the Euler angles equivalent to quaternion (roll, pitch, yaw) NOTE: Angles are returned in a Vector3 struct in radians @@ -2427,7 +2427,7 @@ NOTE: Angles are returned in a Vector3 struct in radians */ int lmathQuaternionToEuler( lua_State *L ) { if ( !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionToEuler( Quaternion q )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionToEuler( Quaternion q )" ); lua_pushboolean( L, false ); return 1; } @@ -2439,7 +2439,7 @@ int lmathQuaternionToEuler( lua_State *L ) { } /* -> result = RL_QuaternionTransform( Quaternion q, Matrix mat ) +> result = RL.QuaternionTransform( Quaternion q, Matrix mat ) Transform a quaternion given a transformation matrix @@ -2448,7 +2448,7 @@ Transform a quaternion given a transformation matrix */ int lmathQuaternionTransform( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_istable( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionTransform( Quaternion q, Matrix mat )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionTransform( Quaternion q, Matrix mat )" ); lua_pushboolean( L, false ); return 1; } @@ -2462,7 +2462,7 @@ int lmathQuaternionTransform( lua_State *L ) { } /* -> result = RL_QuaternionEquals( Quaternion q1, Quaternion q2 ) +> result = RL.QuaternionEquals( Quaternion q1, Quaternion q2 ) Check whether two given quaternions are almost equal @@ -2471,7 +2471,7 @@ Check whether two given quaternions are almost equal */ int lmathQuaternionEquals( lua_State *L ) { if ( !lua_istable( L, -2 ) || !lua_isnumber( L, -1 ) ) { - TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_QuaternionEquals( Quaternion q1, Quaternion q2 )" ); + TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.QuaternionEquals( Quaternion q1, Quaternion q2 )" ); lua_pushboolean( L, false ); return 1; } |
