MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / GetTransformMatrices

Method GetTransformMatrices

TSFlector2D.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void Flector2D::GetTransformMatrices(Transform2D *M, Transform2D *Minv) const
29{
30 float xy = x * y * -2.0F;
31 float xz = x * z * -2.0F;
32 float yz = y * z * -2.0F;
33 float xw = x * w * -2.0F;
34 float yw = y * w * -2.0F;
35 float x2 = 1.0F - x * x * 2.0F;
36 float y2 = 1.0F - y * y * 2.0F;
37
38 M->Set(x2, xy, xz + yw, xy, y2, yz - xw);
39 Minv->Set(x2, xy, xz - yw, xy, y2, yz + xw);
40}
41
42Flector2D& Flector2D::SetTransformMatrix(const Transform2D& M)
43{

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected