MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / writeAffineTransform

Method writeAffineTransform

Engine/source/core/stream/bitStream.cpp:483–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483void BitStream::writeAffineTransform(const MatrixF& matrix)
484{
485// AssertFatal(matrix.isAffine() == true,
486// "BitStream::writeAffineTransform: Error, must write only affine transforms!");
487
488 Point3F pos;
489 matrix.getColumn(3, &pos);
490 mathWrite(*this, pos);
491
492 QuatF q(matrix);
493 q.normalize();
494 write(q.x);
495 write(q.y);
496 write(q.z);
497 writeFlag(q.w < 0.0);
498}
499
500void BitStream::readAffineTransform(MatrixF* matrix)
501{

Callers 15

packMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packDataMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80

Calls 4

mathWriteFunction · 0.85
getColumnMethod · 0.80
writeFunction · 0.50
normalizeMethod · 0.45

Tested by

no test coverage detected