Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Surface Spatial Transforms »
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
)
void RescaleSurface
(
Surface inSurface,
Point3D inReferencePoint,
float inScaleX,
float? inScaleY,
float? inScaleZ,
bool inInverse,
out 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. |