Back to Adaptive Vision Library website
 
                
                    
	
					
	You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RotateLine
Rotates a line clockwise around a center point.
Syntax
C++
C#
void avl::RotateLine ( const avl::Line2D& inLine, const avl::Point2D& inCenter, atl::real inAngle, bool inInverse, avl::Line2D& outLine )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]()  | 
				inLine | const Line2D& | ||
![]()  | 
				inCenter | const Point2D& | Center of rotation | |
![]()  | 
				inAngle | real | Clockwise angle of rotation | |
![]()  | 
				inInverse | bool | Switches to the inverse operation | |
![]()  | 
				outLine | 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. | 




