Back to Aurora Vision Library website

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

RescaleBox3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Changes the distances of box in 3D to a reference point.

Syntax

C++
C#
 
void avl::RescaleBox3D
(
	const avl::Box3D& inBox3D,
	const avl::Point3D& inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Box3D& outBox3D
)

Parameters

Name Type Default Description
Input value inBox3D const Box3D&
Input value inReferencePoint const Point3D& Point to which the distances will be changed
Input value inScale float 1.0f Scaling factor
Input value inInverse bool Switches to the inverse operation
Output value outBox3D Box3D&

In-place Processing

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

Read more about In-place Computation.

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling of a box in RescaleBox3D.