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

Method MakeInvolution

TSMatrix4D.cpp:673–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673Transform3D Transform3D::MakeInvolution(const Vector3D& a)
674{
675 float x = a.x * 2.0F;
676 float y = a.y * 2.0F;
677 float z = a.z * 2.0F;
678 float axay = x * a.y;
679 float axaz = x * a.z;
680 float ayaz = y * a.z;
681
682 return (Transform3D(x * a.x - 1.0F, axay, axaz, 0.0F,
683 axay, y * a.y - 1.0F, ayaz, 0.0F,
684 axaz, ayaz, z * a.z - 1.0F, 0.0F));
685}
686
687Transform3D Transform3D::MakeReflection(const Plane3D& plane)
688{

Callers

nothing calls this directly

Calls 1

Transform3DClass · 0.70

Tested by

no test coverage detected