Back to Adaptive Vision Library website

You are here: Start » Function Reference » Point3DGrid Spatial Transforms » RescalePoint3DGrid

RescalePoint3DGrid


Header:AVL.h
Namespace:avl

Changes the distances of grid points to a reference point.

Syntax

C++
C#
 
void avl::RescalePoint3DGrid
(
	const avl::Point3DGrid& inGrid,
	const avl::Point3D& inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Point3DGrid& outGrid
)

Parameters

Name Type Default Description
inGrid const Point3DGrid&
inReferencePoint const Point3D& Point to which the distances will be changed
inScale float 1.0f Scaling factor
inInverse bool Switches to the inverse operation
outGrid Point3DGrid&

Errors

List of possible exceptions:

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