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

TranslateSegment
Translates a segment by a vector.
Syntax
void fil::TranslateSegment ( const fil::Segment2D& inSegment, const fil::Vector2D& inDelta, bool inInverse, fil::Segment2D& outSegment )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSegment | const Segment2D& | ||
![]() |
inDelta | const Vector2D& | Translation vector | |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outSegment | Segment2D& |
Examples
![]() |
![]() |
TranslateSegment performed on the sample segment, inDelta = (-60.0, -80.0) and inInverse = False.