Back to Adaptive Vision Library website

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

ResizeBox3D


Changes the dimensions of a box in 3D.

Syntax

C++
C#
 
void avl::ResizeBox3D
(
	const avl::Box3D& inBox3D,
	const avl::Anchor3D& inAnchor,
	atl::Optional<float> inNewXLength,
	atl::Optional<float> inNewYLength,
	atl::Optional<float> inNewZLength,
	avl::Box3D& outBox3D
)

Parameters

Name Type Range Default Description
inBox3D const Box3D& Input box in 3D
inAnchor const Anchor3D& Point of the box in 3D which position will not change
inNewXLength Optional<float> 0.0 - NIL Target length of the box in x-coordinate
inNewYLength Optional<float> 0.0 - NIL Target length of the box in y-coordinate
inNewZLength Optional<float> 0.0 - NIL Target length of the box in z-coordinate
outBox3D Box3D& Resized box