Back to Aurora Vision Library website

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

ResizeSegment3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Lengthens or shortens a segment in 3D to a new length preserving its orientation and center point.

Syntax

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

Parameters

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