Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » RotateCircle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Rotates a circle clockwise around a center point.
Syntax
C++
C#
void fil::RotateCircle ( const fil::Circle2D& inCircle, const fil::Point2D& inCenter, float inAngle, bool inInverse, fil::Circle2D& outCircle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inCircle | const Circle2D& | ||
![]() |
inCenter | const Point2D& | Center of rotation | |
![]() |
inAngle | float | Clockwise rotation angle | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outCircle | Circle2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inCircle and outCircle
Read more about In-place Computation.
Examples
![]() |
![]() |
RotateCircle performed on the sample circle, inCenter = (173.0, 163.0), inAngle = 180.0 and inInverse = False. The inCenter point is drawn on the first image in blue