MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / asMatrixF

Method asMatrixF

Engine/source/math/mRotation.cpp:250–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250MatrixF RotationF::asMatrixF() const
251{
252 MatrixF returnMat;
253 if (mRotationType == Euler)
254 {
255 returnMat.set(EulerF(x, y, z));
256 }
257 else
258 {
259 AngAxisF aa;
260 aa.set(Point3F(x, y, z), w);
261
262 aa.setMatrix(&returnMat);
263 }
264
265 return returnMat;
266}
267
268QuatF RotationF::asQuatF() const
269{

Callers 8

setTransformMethod · 0.80
setRenderTransformMethod · 0.80
getTransformMethod · 0.80
addObjectMethod · 0.80
getCameraTransformMethod · 0.80
mRotation.hFile · 0.80
operator +Method · 0.80
operator -Method · 0.80

Calls 3

Point3FClass · 0.70
setMethod · 0.45
setMatrixMethod · 0.45

Tested by

no test coverage detected