MCPcopy Create free account
hub / github.com/carbonengine/trinity / TriMatrixRemoveScaling

Function TriMatrixRemoveScaling

trinity/TriMath.cpp:683–693  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Removes any scaling from a matrix. Arguments: out - return matrix without scaling in - input matrix with scaling SeeAlso: Matrix --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

681// Matrix
682// --------------------------------------------------------------------------------
683Matrix* TriMatrixRemoveScaling( Matrix* out, const Matrix* in )
684{
685 if( out != in )
686 {
687 *out = *in;
688 }
689 out->GetX() = Normalize( out->GetX() );
690 out->GetY() = Normalize( out->GetY() );
691 out->GetZ() = Normalize( out->GetZ() );
692 return out;
693}
694
695// --------------------------------------------------------------------------------
696// Description:

Callers 1

SetLocalTransformMethod · 0.85

Calls 3

GetXMethod · 0.45
GetYMethod · 0.45
GetZMethod · 0.45

Tested by

no test coverage detected