You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » 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 | |
---|---|---|---|---|---|
![]() | inLine | AvlNet.Line2D | |||
![]() | inCenter | AvlNet.Point2D | Center of rotation. | ||
![]() | inAngle | float | Clockwise angle of rotation. | ||
![]() | inInverse | bool | Switches to the inverse operation. | ||
![]() | outLine | 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
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in RotateLine. |