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

Method Transform

TSMotor2D.cpp:90–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90Vector2D Terathon::Transform(const Vector2D& v, const Motor2D& Q)
91{
92 float z2 = 1.0F - Q.z * Q.z * 2.0F;
93 float zw = Q.z * Q.w * 2.0F;
94 return (Vector2D(v.x * z2 - v.y * zw, v.y * z2 + v.x * zw));
95}
96
97FlatPoint2D Terathon::Transform(const FlatPoint2D& p, const Motor2D& Q)
98{

Callers

nothing calls this directly

Calls 4

Vector2DClass · 0.85
FlatPoint2DClass · 0.85
Point2DClass · 0.85
Line2DClass · 0.85

Tested by

no test coverage detected