Skip to content

OpenBIMRL | Mathematical vector and point functions

Class path: math.tuples.setAmplitude

Set vector length

setAmplitude1.png

Description

Sets the length of a vector.

Input

Input Name Type Description
0 Vector Tuple3d Vector whose length is to be changed
1 Length Number New length

Output

Output Name Type Description
0 Vector Tuple3d Vector with new length

Use/Example

setAmplitude2.png

Node representation with sample values

Sample file

Download of a sample file so that the user can test the usage himself