Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » ResizeSegment3D_Delta

ResizeSegment3D_Delta


Header: AVL.h
Namespace: avl
Module: Vision3DLite

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

Syntax

C++
C#
 
void avl::ResizeSegment3D_Delta
(
	const avl::Segment3D& inSegment3D,
	float inDelta,
	float inAnchor,
	avl::Segment3D& outSegment3D
)

Parameters

Name Type Range Default Description
Input value inSegment3D const Segment3D&
Input value inDelta float 0.0f Value added to segment length
Input value inAnchor float - - 0.5f Anchor point, 0 means the beginning, 1 means the end of the segment
Output value outSegment3D Segment3D&

Errors

List of possible exceptions:

Error type Description
DomainError Negative segment length in ResizeSegment3D_Delta.