Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Geometry 3D Spatial Transforms »
RescaleVector3D
Lengthens or shortens a 3D vector relatively preserving its direction.
Syntax
C++
C#
void avl::RescaleVector3D
(
const avl::Vector3D& inVector3D,
float inScale,
bool inInverse,
avl::Vector3D& outVector3D
)
void RescaleVector3D
(
Vector3D inVector3D,
float inScale,
bool inInverse,
out 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& |
|
|
Errors
| Error type |
Description |
| DomainError |
inScale cannot be zero in an inverse scaling in RescaleVector3D. |