Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: PointD Rotate(double, PointD)

  • Declared in: RT.Geometry.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 coordinate system is mathy (positive Y goes up), the rotation is counter-clockwise. If the coordinate system is computery (positive Y goes down), the rotation is clockwise.