Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RotatePointArray
Header: | FIL.h |
---|---|
Namespace: | fil |
Rotates an array of points clockwise around a center point.
Syntax
C++
C#
void fil::RotatePointArray ( const ftl::Array<fil::Point2D>& inPoints, ftl::Optional<const fil::Point2D&> inCenter, float inAngle, bool inInverse, ftl::Array<fil::Point2D>& outPoints )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inPoints | const Array<Point2D>& | ||
![]() |
inCenter | Optional<const Point2D&> | NIL | Center of rotation (the mass center by default) |
![]() |
inAngle | float | Clockwise rotation angle | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outPoints | Array<Point2D>& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPoints and outPoints
Read more about In-place Computation.