23 // ============================================================================= |
23 // ============================================================================= |
24 // |
24 // |
25 static void RotateVertex(Vertex& v, const Vertex& rotpoint, const Matrix& transformer) |
25 static void RotateVertex(Vertex& v, const Vertex& rotpoint, const Matrix& transformer) |
26 { |
26 { |
27 v -= rotpoint; |
27 v -= rotpoint; |
28 v.transform(transformer, Origin); |
28 v.transform(transformer, Vertex {}); |
29 v += rotpoint; |
29 v += rotpoint; |
30 } |
30 } |
31 |
31 |
32 // ============================================================================= |
32 // ============================================================================= |
33 // |
33 // |