Back to Aurora Vision Library website

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

RescalePoint3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Changes the distance of a point to a reference point.

Syntax

C++
C#
 
void avl::RescalePoint3D
(
	const avl::Point3D& inPoint3D,
	const avl::Point3D& inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Point3D& outPoint3D
)

Parameters

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

In-place Processing

This function supports in-place data processing - you can pass the same reference to inPoint3D and outPoint3D, inReferencePoint and outPoint3D

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 point.