Back to Adaptive Vision Library website

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

ResizeSegment_Delta


Changes length of a segment by adding a value preserving its orientation and center point.

Syntax

C++
C#
 
void avl::ResizeSegment_Delta
(
	const avl::Segment2D& inSegment,
	float inDelta,
	float inAnchor,
	avl::Segment2D& outSegment
)

Parameters

Name Type Range Default Description
inSegment const Segment2D&
inDelta float 0.0f Value added to segment length
inAnchor float - - 0.5f
outSegment Segment2D&

Errors

Error type Description
DomainError Negative segment length in ResizeSegment_Delta.