Back to Adaptive Vision Library Lite website
You are here: Start » Geometry 2D Spatial Transforms » TranslateSegment
![](../../img/icon/TranslateSegment.png)
TranslateSegment
Translates a segment by a vector.
Syntax
void avl::TranslateSegment ( const avl::Segment2D& inSegment, const avl::Vector2D& inDelta, bool inInverse, avl::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.