Method Rotate
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
objectsIEnumerable<T>Objects read from this drawing.
basePointGeoPoint2The point they turn about, in the world.
angledoubleThe 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
TThe 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.