Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » RotateSegment
RotateSegment
Header: | AVL.h |
---|---|
Namespace: | avl |
Rotates a segment clockwise around a center point.
Syntax
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& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inSegment and outSegment
Read more about In-place Computation.