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

RescaleVector3D
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DLite |
Lengthens or shortens a 3D vector relatively preserving its direction.
Syntax
C++
C#
void fil::RescaleVector3D ( const fil::Vector3D& inVector3D, float inScale, bool inInverse, fil::Vector3D& outVector3D )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inVector3D | const Vector3D& | ||
![]() |
inScale | float | 1.0f | Scaling factor |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outVector3D | Vector3D& |
In-place Processing
This function supports in-place data processing - you can pass the same reference to inVector3D and outVector3D
Read more about In-place Computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Scale cannot be zero in an inverse scaling of vector in RescaleVector3D. |