Back to Adaptive Vision Library website

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

ResizeVector3D


Lengthens or shortens a 3D vector preserving its direction.

Syntax

C++
C#
 
void avl::ResizeVector3D
(
	const avl::Vector3D& inVector,
	atl::real inNewLength,
	avl::Vector3D& outVector
)

Parameters

Name Type Range Default Description
inVector const Vector3D&
inNewLength real 0.0 - 1.0f
outVector Vector3D&