public static Shape2 Rotate(this Shape2 shape, Vector2 center, double angle) { var m = Rotates2.Rotate(angle); return(shape.Transform(p => center + m * (p - center))); }
public static Shape2 Rotate(this Shape2 shape, double angle) { var m = Rotates2.Rotate(angle); return(shape.Transform(p => m * p)); }