/// <summary>Sets this transformation to be a rotation around point rotationCenter.</summary> /// <remarks> /// Sets this transformation to be a rotation around point rotationCenter. /// When the axis Y is directed up and X is directed to the right, the /// positive angle corresponds to the anti-clockwise rotation. When the axis /// Y is directed down and X is directed to the right, the positive angle /// corresponds to the clockwise rotation. /// </remarks> /// <param name="cosA">The cos of the rotation angle.</param> /// <param name="sinA">The sin of the rotation angle.</param> /// <param name="rotationCenter">The center point of the rotation.</param> internal void SetRotate(double cosA, double sinA, com.epl.geometry.Point2D rotationCenter) { SetShift(-rotationCenter.x, -rotationCenter.y); com.epl.geometry.Transformation2D temp = new com.epl.geometry.Transformation2D(); temp.SetRotate(cosA, sinA); Multiply(temp); Shift(rotationCenter.x, rotationCenter.y); }
/// <summary>Rotates the transformation aroung a center point.</summary> /// <param name="cos">The cos angle of the rotation.</param> /// <param name="sin">sin angle of the rotation.</param> /// <param name="rotationCenter">The center point of the rotation.</param> public void Rotate(double cos, double sin, com.epl.geometry.Point2D rotationCenter) { com.epl.geometry.Transformation2D temp = new com.epl.geometry.Transformation2D(); temp.SetRotate(cos, sin, rotationCenter); Multiply(temp); }
/// <summary>Rotates the transformation.</summary> /// <param name="cos">The cos angle of the rotation.</param> /// <param name="sin">The sin angle of the rotation.</param> public void Rotate(double cos, double sin) { com.epl.geometry.Transformation2D temp = new com.epl.geometry.Transformation2D(); temp.SetRotate(cos, sin); Multiply(temp); }
/// <summary>Rotates the transformation.</summary> /// <param name="angle_in_Radians">The rotation angle in radian.</param> public void Rotate(double angle_in_Radians) { com.epl.geometry.Transformation2D temp = new com.epl.geometry.Transformation2D(); temp.SetRotate(angle_in_Radians); Multiply(temp); }