Back to FabImage Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » RescalePoint3D

RescalePoint3D
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DLite |
Changes the distance of a point to a reference point.
Syntax
C++
C#
void fil::RescalePoint3D ( const fil::Point3D& inPoint3D, const fil::Point3D& inReferencePoint, float inScale, bool inInverse, fil::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& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inPoint3D and outPoint3D, inReferencePoint and outPoint3D
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Scale cannot be zero in an inverse rescaling of a point. |