Back to FabImage Library website

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

RotateLine


Header: FIL.h
Namespace: fil
Module: FoundationLite

Rotates a line clockwise around a center point.

Syntax

C++
C#
 
void fil::RotateLine
(
	const fil::Line2D& inLine,
	const fil::Point2D& inCenter,
	float inAngle,
	bool inInverse,
	fil::Line2D& outLine
)

Parameters

Name Type Default Description
Input value inLine const Line2D&
Input value inCenter const Point2D& Center of rotation
Input value inAngle float Clockwise angle of rotation
Input value inInverse bool Switches to the inverse operation
Output value 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

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.