Vector
3 nodes
On this page 3
Make Vector2
FunctionA point from its two coordinates.
Signature
MakeVector2(x: Number, y: Number) -> Vector 2D
Vector2D MakeVector2(double x, double y)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | The horizontal coordinate. |
| y | Number | — | The vertical coordinate. |
Returns
| Vector | Vector 2D |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- GPU Kernels
Split Vector2
FunctionA point's two coordinates.
Signature
SplitVector2(vector: Vector 2D) -> (X: Number, y: Number)
double SplitVector2(Vector2D vector, out double y)
Parameters
| name | type | default | description |
|---|---|---|---|
| vector | Vector 2D | — | The point. |
Returns
| X | Number |
| y | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- GPU Kernels
Vector Length
FunctionHow far a point is from the origin.
Signature
VectorLength(vector: Vector 2D) -> Number
double VectorLength(Vector2D vector)
Parameters
| name | type | default | description |
|---|---|---|---|
| vector | Vector 2D | — | The point. |
Returns
| Length | Number |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector
- Package
- GPU Kernels