Table of Contents

Method Rotate

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

Rotate(Point, double)

Rotates a point around the origin by the specified angle in radians.

public static Point Rotate(Point p, double radians)

Parameters

p Point

The point to rotate.

radians double

The rotation angle, in radians (counterclockwise).

Returns

Point

The rotated Point.

Rotate(Point, Point, double)

Rotates a point around the specified center by the given angle in radians.

public static Point Rotate(Point p, Point center, double radians)

Parameters

p Point

The point to rotate.

center Point

The rotation center.

radians double

The rotation angle, in radians (counterclockwise).

Returns

Point

The rotated Point.