A list of all Actions, Conditions and Expressions supported in this addon.
Angle
-
Actions
Angle From Components
Manually sets the angle of the Vector by their components. This is automatically called when doing any Vector operation.
Size & Position
-
Actions
Set Components ({0}, {1})
Sets the vector X and Y, and ensures to update the angle.
Conversion
-
Actions
To Zero
Converts to zero vector (0, 0).
To One
Converts to unit vector (1, 1).
To Left
Converts to left vector (-1, 0).
To Right
Converts to right vector (1, 0).
To Up
Converts to up vector (0, 1).
To Down
Converts to down vector (0, -1).
To Fixed ({0})
Rounds the vector to a fixed number of decimal places.
Normal
Normalizes the vector.
Sign
Sets each component to 1.0 if it's positive, -1.0 if it's negative and 0.0 if it's zero.
Calculation
-
Actions
Add ({0}, {1})
Adds x and y components to the vector.
Sub ({0}, {1})
Subtracts x and y components from the vector.
Scale ({0}, {1})
Scales the vector by x and y factors.
Max ({0}, {1})
Sets the vector components to the maximum of the vector and the input values (x, y).
Min ({0}, {1})
Sets the vector components to the minimum of the vector and the input values (x, y).
Clamp ({0}, {1}, {2}, {3})
Clamps the vector components between the given min and max values
Reflect ({0}, {1})
Get the reflection of a vector with a normal.
Project ({0}, {1})
Projects the vector onto another vector (x, y).
Reject ({0}, {1})
Rejects the vector onto a perpendicular direction from another vector (x, y).
Snapped ({0}, {1})
Snaps each component to the nearest multiple of the corresponding step
-
Expressions
dist
Returns the Euclidean distance from the vector to another point.
sdist
Returns the squared Euclidean distance from the vector to another point.
len
Returns the length (magnitude) of the vector.
aspect
Calculates the aspect ratio of the vector.
dot
Returns the dot product of the vector and another vector (x, y).
cross
Returns the cross product of the vector and another vector (x, y).
General
-
Conditions
Is Zero
Checks if each component is zero.
Is Normalized
Checks if the vector is normalized, i.e. its length is approximately equal to 1.
Is Finite
Checks if each component is a finite number.