MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / toMatrix

Method toMatrix

Source/Support/Geometry.cpp:397–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void AffineTransform::toMatrix(Matrix& m) const {
398 // | m[0] m[4] m[8] m[12] | | m11 m21 m31 m41 | | a c 0 tx |
399 // | m[1] m[5] m[9] m[13] | | m12 m22 m32 m42 | | b d 0 ty |
400 // | m[2] m[6] m[10] m[14] | => | m13 m23 m33 m43 | => | 0 0 1 0 |
401 // | m[3] m[7] m[11] m[15] | | m14 m24 m34 m44 | | 0 0 0 1 |
402 ktm::fmat4x4& mat = r_cast<ktm::fmat4x4&>(m);
403 *r_cast<const ktm::faffine2d*>(this) >> mat;
404}
405
406static_assert(alignof(Matrix) >= alignof(ktm::fmat4x4), "alignof(Matrix) should be greater equal than alignof(ktm::fmat4x4).");
407

Callers 7

DragonBone.cppFile · 0.80
getLocalWorldMethod · 0.80
_updateDisplayDataMethod · 0.80
updateMethod · 0.80
_computeAMethod · 0.80
_computeBMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected