Back to Adaptive Vision Library website

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

RescaleSurface


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
inSurface const Surface& Input surface
inReferencePoint const Point3D& Point to which the distances will be changed
inScaleX float 1.0f Scaling factor along X axis
inScaleY Optional<float> NIL Scaling factor along Y axis
inScaleZ Optional<float> NIL Scaling factor along Z axis
inInverse bool Switches to the inverse operation
outSurface Surface& Rescaled surface

Errors

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