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

Method MakeReflection

TSMatrix4D.cpp:659–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659Transform3D Transform3D::MakeReflection(const Vector3D& a)
660{
661 float x = a.x * -2.0F;
662 float y = a.y * -2.0F;
663 float z = a.z * -2.0F;
664 float axay = x * a.y;
665 float axaz = x * a.z;
666 float ayaz = y * a.z;
667
668 return (Transform3D(x * a.x + 1.0F, axay, axaz, 0.0F,
669 axay, y * a.y + 1.0F, ayaz, 0.0F,
670 axaz, ayaz, z * a.z + 1.0F, 0.0F));
671}
672
673Transform3D Transform3D::MakeInvolution(const Vector3D& a)
674{

Callers

nothing calls this directly

Calls 1

Transform3DClass · 0.70

Tested by

no test coverage detected