Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 3D Spatial Transforms » RescalePoint3D
RescalePoint3D
| Header: | AVL.h |
|---|---|
| Namespace: | avl |
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 | |
|---|---|---|---|---|
![]() |
inPoint3D | const Point3D& | ||
![]() |
inReferencePoint | const Point3D& | Point to which the distance will be changed | |
![]() |
inScale | float | 1.0f | Scaling factor |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outPoint3D | Point3D& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Scale cannot be zero in an inverse rescaling of a point. |


