| 88 | } |
| 89 | |
| 90 | Vector2D 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 | |
| 97 | FlatPoint2D Terathon::Transform(const FlatPoint2D& p, const Motor2D& Q) |
| 98 | { |
nothing calls this directly
no test coverage detected