Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » RotateLine
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationLite |
Rotates a line clockwise around a center point.
Syntax
C++
C#
void avl::RotateLine ( const avl::Line2D& inLine, const avl::Point2D& inCenter, float inAngle, bool inInverse, avl::Line2D& outLine )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inLine | const Line2D& | |||
inCenter | const Point2D& | Center of rotation | ||
inAngle | float | Clockwise angle of rotation | ||
inInverse | bool | Switches to the inverse operation | ||
outLine | Line2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inLine and outLine
Read more about In-place Computation.
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite line on input in RotateLine. |