Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » RotateRectangle
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Rotates a rectangle clockwise around a center point.
Syntax
C++
C#
void fil::RotateRectangle ( const fil::Rectangle2D& inRectangle, ftl::Optional<const fil::Point2D&> inCenter, float inAngle, bool inInverse, fil::Rectangle2D& outRectangle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inRectangle | const Rectangle2D& | ||
![]() |
inCenter | Optional<const Point2D&> | NIL | Center of rotation (the rectangle's point by default) |
![]() |
inAngle | float | Clockwise rotation angle | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outRectangle | Rectangle2D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inRectangle and outRectangle
Read more about In-place Computation.
Examples
![]() |
![]() |
RotateRectangle performed on the sample rectangle, inCenter = Auto, inAngle = 40.0 and inInverse = False.