You are here: Start » AVL.NET » AVL.RotateLine(AvlNet.Line2D, AvlNet.Point2D, float, bool, AvlNet.Line2D)
AVL.RotateLine(AvlNet.Line2D, AvlNet.Point2D, float, bool, AvlNet.Line2D)
Rotates a line clockwise around a center point.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void RotateLine( AvlNet.Line2D inLine, AvlNet.Point2D inCenter, float inAngle, bool inInverse, out AvlNet.Line2D outLine )
Parameters
- inLine
- Type: AvlNet.Line2D
- inCenter
- Type: AvlNet.Point2D
Center of rotation - inAngle
- Type: System.Single
Clockwise angle of rotation - inInverse
- Type: System.Boolean
Switches to the inverse operation - outLine
- Type: AvlNet.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
| Error type | Description |
|---|---|
| DomainError | Indefinite line on input in RotateLine. |


