Exemple #1
0
        public void Rotate(double angle, Point rotationPoint)
        {
            var transitionMatrix = MathematicsRotation.getTransitionMatrix(angle, rotationPoint);
            var newPoint         = MathematicsRotation.getNewPoint(new double[] { x, y, 1 }, transitionMatrix);

            x = newPoint.x;
            y = newPoint.y;
        }
Exemple #2
0
        public void Rotate(double angle, Point rotationPoint)
        {
            var transitionMatrix = MathematicsRotation.getTransitionMatrix(angle, rotationPoint);

            point1.Rotate(angle, rotationPoint);
            point2.Rotate(angle, rotationPoint);
            point3.Rotate(angle, rotationPoint);
            point4.Rotate(angle, rotationPoint);
        }