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

Method Transform

TSFlector2D.cpp:83–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83Vector2D Terathon::Transform(const Vector2D& v, const Flector2D& F)
84{
85 float xy = F.x * F.y * -2.0F;
86 float x2 = 1.0F - F.x * F.x * 2.0F;
87 float y2 = 1.0F - F.y * F.y * 2.0F;
88 return (Vector2D(x2 * v.x + xy * v.y, xy * v.x + y2 * v.y));
89}
90
91FlatPoint2D Terathon::Transform(const FlatPoint2D& q, const Flector2D& F)
92{

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