You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.RotateLine

AVL.RotateLine

Rotates a line clockwise around a center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RotateLine
(
	AvlNet.Line2D inLine,
	AvlNet.Point2D inCenter,
	float inAngle,
	bool inInverse,
	out AvlNet.Line2D outLine
)

Parameters

Name Type Range Default Description
inLineAvlNet.Line2D
inCenterAvlNet.Point2DCenter of rotation.
inAnglefloatClockwise angle of rotation.
inInverseboolSwitches to the inverse operation.
outLineAvlNet.Line2D

Examples

RotateLine performed on the sample line, inCenter = (152.0, 121.0), inAngle = 90.0 and inInverse = False. The inCenter point is drawn on the first image in blue.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in RotateLine.

See also