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

Method writeAffineTransform

Engine/source/core/stream/bitStream.cpp:453–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453void BitStream::writeAffineTransform(const MatrixF& matrix)
454{
455// AssertFatal(matrix.isAffine() == true,
456// "BitStream::writeAffineTransform: Error, must write only affine transforms!");
457
458 Point3F pos;
459 matrix.getColumn(3, &pos);
460 mathWrite(*this, pos);
461
462 QuatF q(matrix);
463 q.normalize();
464 write(q.x);
465 write(q.y);
466 write(q.z);
467 writeFlag(q.w < 0.0);
468}
469
470void BitStream::readAffineTransform(MatrixF* matrix)
471{

Callers 14

packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packDataMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 0.80
packUpdateMethod · 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