Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Spatial Transforms » RotateSegment
Rotates a segment clockwise around a center point.
Syntax
C++
C#
void avl::RotateSegment ( const avl::Segment2D& inSegment, atl::Optional<const avl::Point2D&> inCenter, float inAngle, bool inInverse, avl::Segment2D& outSegment )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inSegment | const Segment2D& | |||
inCenter | Optional<const Point2D&> | NIL | Center of rotation (by default the mass center) | |
inAngle | float | Clockwise angle of rotation | ||
inInverse | bool | Switches to the inverse operation | ||
outSegment | Segment2D& |