Removed MatrixNormalize. Fixed API and readme.
This commit is contained in:
21
src/rmath.c
21
src/rmath.c
@@ -1247,27 +1247,6 @@ int lmathMatrixInvert( lua_State *L ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> result = RL_MatrixNormalize( Matrix mat )
|
||||
|
||||
Normalize provided matrix
|
||||
|
||||
- Failure return false
|
||||
- Success return Matrix
|
||||
*/
|
||||
int lmathMatrixNormalize( lua_State *L ) {
|
||||
if ( !lua_istable( L, -1 ) ) {
|
||||
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_MatrixNormalize( Matrix mat )" );
|
||||
lua_pushboolean( L, false );
|
||||
return 1;
|
||||
}
|
||||
Matrix mat = uluaGetMatrix( L );
|
||||
|
||||
uluaPushMatrix( L, MatrixNormalize( mat ) );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
> result = MatrixIdentity()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user