Table of Contents

Method Rotate

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

Rotate<T>(IEnumerable<T>, GeoPoint2, double)

Turns objects about a base point, as ROTATE does: counter-clockwise, in radians, the angle taken from nought up to a whole turn as ROTATE takes it. Sends the queued changes with it.

public IReadOnlyList<T> Rotate<T>(IEnumerable<T> objects, GeoPoint2 basePoint, double angle) where T : DxfEntity

Parameters

objects IEnumerable<T>

Objects read from this drawing.

basePoint GeoPoint2

The point they turn about, in the world.

angle double

The angle, in radians.

Returns

IReadOnlyList<T>

New copies of the objects as they are now, under the same handles, in the order given.

Type Parameters

T

The type of the objects given.

Exceptions

ArgumentNullException

Thrown when the list is null.

ArgumentException

Thrown when an object was not read from this drawing.

ArgumentOutOfRangeException

Thrown when a number is not finite.

CadRemoteException

Thrown when the app refuses, as Move<T>(IEnumerable<T>, GeoVector2) says. Nothing is applied.