| 47 | } |
| 48 | |
| 49 | Vec2 PointApplyAffineTransform(const Vec2& point, const AffineTransform& t) |
| 50 | { |
| 51 | Vec2 p; |
| 52 | p.x = (float)((double)t.a * point.x + (double)t.c * point.y + t.tx); |
| 53 | p.y = (float)((double)t.b * point.x + (double)t.d * point.y + t.ty); |
| 54 | return p; |
| 55 | } |
| 56 | |
| 57 | Vec2 PointApplyTransform(const Vec2& point, const Mat4& transform) |
| 58 | { |
no outgoing calls