Back to FabImage Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » RotateSegment

RotateSegment
Rotates a segment clockwise around a center point.
Syntax
void fil::RotateSegment ( const fil::Segment2D& inSegment, ftl::Optional<const fil::Point2D&> inCenter, float inAngle, bool inInverse, fil::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& |
Examples
![]() |
![]() |
RotateSegment performed on the sample segment, inCenter = Auto, inAngle = 70.0 and inInverse = False.