Vector 2D
17 nodes
On this page 17
X
FunctionThe X coordinate.
X(Vector 2D: Vector 2D) -> Number
double X(Vector2D Vector 2D)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector 2D | Vector 2D | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Y
FunctionThe Y coordinate.
Y(Vector 2D: Vector 2D) -> Number
double Y(Vector2D Vector 2D)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector 2D | Vector 2D | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Zero
FunctionGets a Types.Vector2D that has all of its values set to zero.
Zero() -> Vector 2D
Vector2D Zero()
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Make Vector 2D
FunctionOverload 1 of 2
Vector2D(x: Number, y: Number) -> Vector 2D
Vector2D Vector2D(double x, double y)
Initializes a new instance of the Types.Vector2D struct with the specified coordinates.
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | The X coordinate. |
| y | Number | — | The Y coordinate. |
Returns
| result | Vector 2D |
Remarks
Marked for JSON so that a serializer can rebuild one. Vector2D.X and Vector2D.Y are readonly
*fields*, which a serializer can read but cannot assign, so without a constructor to call every
deserialized vector came back as (0, 0) - which, since node positions are vectors, silently collapsed
a whole document's layout onto the origin.
Overload 2 of 2
Vector2D(v: Vector2) -> Vector 2D
Vector2D Vector2D(Vector2 v)
Initializes a new instance of the Types.Vector2D struct using a Numerics.Vector2.
Parameters
| name | type | default | description |
|---|---|---|---|
| v | Vector2 | — | A Numerics.Vector2 instance from which to initialize the coordinates. |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Length
FunctionGets the length (magnitude) of the vector.
Length(Vector 2D: Vector 2D) -> Number
double Length(Vector2D Vector 2D)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector 2D | Vector 2D | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Length Squared
FunctionCalculates the square of the vector's length.
LengthSquared(Vector 2D: Vector 2D) -> Number
double LengthSquared(Vector2D Vector 2D)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector 2D | Vector 2D | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
To String
FunctionThis node carries no documentation.
ToString(Vector 2D: Vector 2D) -> Text
string ToString(Vector2D Vector 2D)
Parameters
| name | type | default | description |
|---|---|---|---|
| Vector 2D | Vector 2D | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Distance Squared
FunctionCalculates the square of the distance between two vectors.
DistanceSquared(a: Vector 2D, b: Vector 2D) -> Number
double DistanceSquared(Vector2D a, Vector2D b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The first Types.Vector2D. |
| b | Vector 2D | — | The second Types.Vector2D. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Dot
FunctionCalculates the dot product of two vectors.
Dot(a: Vector 2D, b: Vector 2D) -> Number
double Dot(Vector2D a, Vector2D b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The first Types.Vector2D. |
| b | Vector 2D | — | The second Types.Vector2D. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Addition Operation
FunctionAdds two Types.Vector2D instances.
op_Addition(a: Vector 2D, b: Vector 2D) -> Vector 2D
Vector2D op_Addition(Vector2D a, Vector2D b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The first Types.Vector2D. |
| b | Vector 2D | — | The second Types.Vector2D. |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Division Operation
FunctionDivides a Types.Vector2D by a scalar.
op_Division(a: Vector 2D, b: Number) -> Vector 2D
Vector2D op_Division(Vector2D a, double b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The Types.Vector2D to divide. |
| b | Number | — | The scalar value. |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Equality Operation
FunctionCompares two Types.Vector2D instances for equality.
op_Equality(a: Vector 2D, b: Vector 2D) -> Truth
bool op_Equality(Vector2D a, Vector2D b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The first Types.Vector2D. |
| b | Vector 2D | — | The second Types.Vector2D. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Inequality Operation
FunctionCompares two Types.Vector2D instances for inequality.
op_Inequality(a: Vector 2D, b: Vector 2D) -> Truth
bool op_Inequality(Vector2D a, Vector2D b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The first Types.Vector2D. |
| b | Vector 2D | — | The second Types.Vector2D. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Multiply Operation
FunctionOverload 1 of 2
op_Multiply(a: Vector 2D, b: Number) -> Vector 2D
Vector2D op_Multiply(Vector2D a, double b)
Multiplies a Types.Vector2D by a scalar.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The Types.Vector2D to multiply. |
| b | Number | — | The scalar value. |
Returns
| result | Vector 2D |
Overload 2 of 2
op_Multiply(a: Number, b: Vector 2D) -> Vector 2D
Vector2D op_Multiply(double a, Vector2D b)
Multiplies a scalar by a Types.Vector2D.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | The scalar value. |
| b | Vector 2D | — | The Types.Vector2D to multiply. |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Subtraction Operation
FunctionSubtracts one Types.Vector2D from another.
op_Subtraction(a: Vector 2D, b: Vector 2D) -> Vector 2D
Vector2D op_Subtraction(Vector2D a, Vector2D b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The first Types.Vector2D. |
| b | Vector 2D | — | The second Types.Vector2D to subtract from the first. |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Unary Negation Operation
FunctionNegates a Types.Vector2D.
op_UnaryNegation(a: Vector 2D) -> Vector 2D
Vector2D op_UnaryNegation(Vector2D a)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Vector 2D | — | The Types.Vector2D to negate. |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing
Parse Tuple
FunctionThis node carries no documentation.
ParseTuple(tuple: Text) -> Vector 2D
Vector2D ParseTuple(string tuple)
Parameters
| name | type | default | description |
|---|---|---|---|
| tuple | Text | — |
Returns
| result | Vector 2D |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Vector 2D
- Package
- Image Processing