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

Function TriVectorRotatedBasisMatrix

trinity/TriMath.cpp:131–138  ·  view source on GitHub ↗

Rotate a unit vector aligned to one of the axes (defined by xyz) by the matrix

Source from the content-addressed store, hash-verified

129//Rotate a unit vector aligned to one of the axes
130//(defined by xyz) by the matrix
131Vector3* TriVectorRotatedBasisMatrix(
132 Vector3* out,
133 const TRITRANSFORMAXIS xyz,
134 const Matrix* m )
135{
136 *out = Vector3( m->m[xyz][0], m->m[xyz][1], m->m[xyz][2] );
137 return out;
138}
139
140Vector3* TriVectorSpherical(
141 Vector3* v,

Callers 3

ApplyTransformMethod · 0.85
ApplyTransformMethod · 0.85

Calls 1

Vector3Class · 0.70

Tested by

no test coverage detected