Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Spatial Transforms » TranslateSegment

TranslateSegment


Translates a segment by a vector.

Syntax

C++
C#
 
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.