Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: PointD Rotate(double, PointD)

  • Declared in: RT.Coordinates.PointD

Declaration

public PointD Rotate(
    double angle,
    PointD about
)

Summary

Rotates the current point by the specified angle about the specified point.

Parameters

doubleangle The angle in radians.
PointDabout Point to rotate the current point about.

Returns

The rotated point.

Remarks

If the point coordinates are interpreted as is common in geometry (positive Y-axis goes up), this rotation is counter-clockwise. In SVG, where the positive Y-axis goes down, the rotation is clockwise.