Divooka Reference

Vector

3 nodes

On this page 3

Make Vector2

Function

A point from its two coordinates.

Signature
MakeVector2(x: Number, y: Number) -> Vector 2D
Vector2D MakeVector2(double x, double y)

Parameters

nametypedefaultdescription
xNumber—The horizontal coordinate.
yNumber—The vertical coordinate.

Returns

VectorVector 2D
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Vector
Package
GPU Kernels

Split Vector2

Function

A point's two coordinates.

Signature
SplitVector2(vector: Vector 2D) -> (X: Number, y: Number)
double SplitVector2(Vector2D vector, out double y)

Parameters

nametypedefaultdescription
vectorVector 2D—The point.

Returns

XNumber
yNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Vector
Package
GPU Kernels

Vector Length

Function

How far a point is from the origin.

Signature
VectorLength(vector: Vector 2D) -> Number
double VectorLength(Vector2D vector)

Parameters

nametypedefaultdescription
vectorVector 2D—The point.

Returns

LengthNumber
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Vector
Package
GPU Kernels