Back to Adaptive Vision Library website
You are here: Start » Function Reference » Path Spatial Transforms » RotatePath
RotatePath
Rotates a path clockwise around a center point.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::RotatePath ( const avl::Path& inPath, atl::Optional<const avl::Point2D&> inCenter, float inAngle, bool inInverse, avl::Path& outPath )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inPath | const Path& | Input path | ||
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 | ||
outPath | Path& | Output path |
Examples
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPath and outPath
See Also
- AlignPath – Moves a path from a local coordinate system to the absolute one.
- TranslatePath – Translates a path by a vector.