Back to Aurora Vision Library website

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

ResizeSegment_Delta


Header: AVL.h
Namespace: avl
Module: FoundationLite

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
Input value inSegment const Segment2D&
Input value inDelta float 0.0f Value added to segment length
Input value inAnchor float - - 0.5f
Output value outSegment Segment2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inSegment and outSegment

Read more about In-place Computation.

Errors

List of possible exceptions:

Error type Description
DomainError Negative segment length in ResizeSegment_Delta.