Rotates the vertices of the triangle around one point (by default, b), returning as a new object.
b
let triangle = Triangles.fromPoints([a, b, c]);triangle = Triangles.rotateByVertex(triangle, Math.Pi, `a`); Copy
let triangle = Triangles.fromPoints([a, b, c]);triangle = Triangles.rotateByVertex(triangle, Math.Pi, `a`);
Triangle
Angle to rotate by
Name of vertex: a, b or c.
A new triangle
Rotates the vertices of the triangle around one point (by default,
b
), returning as a new object.