Designer Plugins
Plugins for Disguise Designer software.
Plugins for Disguise Designer software.
A three-dimensional vector with x, y and z components.
Base class: _BlipValue
The maximum component of the vector.
The minimum component of the vector.
The x component of the vector.
UserName: X
The y component of the vector.
UserName: Y
The z component of the vector.
UserName: Z
Copy constructor for Vec
A serialisable tuple of the Vec parameters
The Euler angles that rotate (0,0,-1) to be parallel with this vector.
Returns The Euler angles as a Vec of (heading, elevation, 0), in normalised coordinates.
The cross product of two vectors.
Parameters:
Returns The cross product of this vector and the other vector.
The dot product of two vectors.
Parameters:
Returns The dot product of this vector and the other vector.
The length of the vector in 3D space.
Returns The length of the vector.
Modulo of two vectors.
Parameters:
Returns A new vector with the component-wise modulo of this vector and the other vector.
Normalises the vector to have a length of 1.
Returns The normalised vector.
Restricts the vector to be within a minimum and maximum range.
Parameters:
Returns A new vector with components restricted to the minimum and maximum range.
Rounds the components of this vector.
Parameters:
Returns A new vector with rounded components.
Component-wise maximum of two vectors.
Parameters:
Returns A new vector containing the component-wise maximum of this and the other vector.
Component-wise minimum of two vectors.
Parameters:
Returns A new vector containing the component-wise minimum of this and the other vector.
Adds two vectors.
Parameters:
Returns The component-wise sum of this and the input vector.
Divides the vector by a scalar value.
Parameters:
Returns A new vector that is the result of dividing the components of this vector by the given scalar value.
Tests for equality between two vectors.
Parameters:
Returns True if all components of the vectors are equal, false otherwise.
Get an item from the Vec by index.
Parameters:
Returns The x element if the index is 0, the y element if the index is 1, the z element if the index is 2
The length of the Vec
Returns Always returns 3
Multiplies the vector by a scalar value.
Parameters:
Returns A new vector that is the result of multiplying the components of this vector by the given scalar value.
Tests for inequality between two vectors.
Parameters:
Returns True if any of the components of the vectors are not equal, false otherwise.
The negative of the Vec
Returns The Vec with its x, y and z components negated
Divide another vector by this vector
Parameters:
Returns The element-wise division other/self
String representation of the Vec
Multiplies the vector by a scalar value.
Parameters:
Returns A new vector that is the result of multiplying the components of this vector by the given scalar value.
String representation of the Vec
Subtracts another vector from this vector.
Parameters:
Returns The resulting vector after component-wise subtraction.