Back to Aurora Vision Library website

You are here: Start » Function Reference » Surface » Surface Spatial Transforms » RescaleSurface

RescaleSurface


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Changes the distances of surface points to a reference point.

Syntax

C++
C#
 
void avl::RescaleSurface
(
	const avl::Surface& inSurface,
	const avl::Point3D& inReferencePoint,
	float inScaleX,
	atl::Optional<float> inScaleY,
	atl::Optional<float> inScaleZ,
	bool inInverse,
	avl::Surface& outSurface
)

Parameters

Name Type Default Description
Input value inSurface const Surface& Input surface
Input value inReferencePoint const Point3D& Point to which the distances will be changed
Input value inScaleX float 1.0f Scaling factor along X axis
Input value inScaleY Optional<float> NIL Scaling factor along Y axis
Input value inScaleZ Optional<float> NIL Scaling factor along Z axis
Input value inInverse bool Switches to the inverse operation
Output value outSurface Surface& Rescaled surface

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling in RescaleSurface.