Back to Aurora Vision Library website
You are here: Start » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » RescaleVector3D
RescaleVector3D
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | Vision3DLite |
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 )
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. |