コード例 #1
0
ファイル: C2DRect.cs プロジェクト: kasznare/DIP1
        /// <summary>
        /// Reflect throught the point given.
        /// Switches Top Left and Bottom Right to maintain validity.
        /// </summary>
        /// <param name="Point">Reflection point.</param>
        public override void Reflect(C2DPoint Point)
        {
            TopLeft.Reflect(Point);
            BottomRight.Reflect(Point);

            double x = TopLeft.x;
            double y = TopLeft.y;

            TopLeft.Set(BottomRight);
            BottomRight.x = x;
            BottomRight.y = y;
        }