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

Method MakeSkew

TSMatrix4D.cpp:741–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741Transform3D Transform3D::MakeSkew(float angle, const Vector3D& a, const Vector3D& b)
742{
743 float t = Tan(angle);
744 float x = a.x * t;
745 float y = a.y * t;
746 float z = a.z * t;
747
748 return (Transform3D(x * b.x + 1.0F, x * b.y, x * b.z, 0.0F,
749 y * b.x, y * b.y + 1.0F, y * b.z, 0.0F,
750 z * b.x, z * b.y, z * b.z + 1.0F, 0.0F));
751}
752
753Transform3D Transform3D::MakeTranslation(const Vector3D& dv)
754{

Callers

nothing calls this directly

Calls 2

TanFunction · 0.85
Transform3DClass · 0.70

Tested by

no test coverage detected