示例#1
0
文件: Point2D.cs 项目: netgrim/MapKit
        //=============================================================================================================================
        /// <summary>Rotates the current point object around a specific point.</summary>
        /// <param name="center">The center of the rotation.</param>
        /// <param name="angle">The angle in radians.</param>
        //=============================================================================================================================

        public void RotateRadians(Point2D center, double angle)
        {
            Point2D temp = this;
            temp -= center;
            temp.RotateRadians(angle);
            temp += center;
            _x = temp.X;
            _y = temp.Y;
        }