예제 #1
0
        public static Shape2 Rotate(this Shape2 shape, Vector2 center, double angle)
        {
            var m = Rotates2.Rotate(angle);

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

            return(shape.Transform(p => m * p));
        }