Package-level declarations
Types
Functions
Returns the angle in degrees of this vector relative to the reference. Angles are towards the positive y-axis (typically counter-clockwise.) between -180 and +180
Returns the angle in degrees of this vector relative to the reference vector described by referenceX and referenceY.
Allows to compare which Vector2 has greater overall length.
Allows to compare which Vector3 has greater overall length.
Allows to compare which Vector4 has greater overall length.
Operator function that allows to deconstruct this circle.
Operator function that allows to deconstruct this ellipse.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this polygon.
Operator function that allows to deconstruct this polyline.
Operator function that allows to deconstruct this rectangle.
Operator function that allows to deconstruct this vector.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this circle.
Operator function that allows to deconstruct this ellipse.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this polygon.
Operator function that allows to deconstruct this polyline.
Operator function that allows to deconstruct this rectangle.
Operator function that allows to deconstruct this vector.
Operator function that allows to deconstruct this circle.
Operator function that allows to deconstruct this ellipse.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this rectangle.
Operator function that allows to deconstruct this vector.
Operator function that allows to deconstruct this ellipse.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this rectangle.
Operator function that allows to deconstruct this vector.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Operator function that allows to deconstruct this matrix.
Calculates the 2D cross product between this and the other vector
Decrements both vector values - subtracts 1 from x and y. To avoid creating a new vector instance, use Vector2.minusAssign instead.
Decrements all vector values - subtracts 1 from x, y and z. To avoid creating a new vector instance, use Vector3.minusAssign instead.
Decrements all vector values - subtracts 1 from X, Y, Z and W components. To avoid creating a new vector instance, use Vector4.minusAssign instead.
Returns this vector scaled by (1 / scalar)
Creates a range by scaling this range's start and endInclusive by the denominator.
Creates a range by scaling this range's start and endInclusive by the divisor.
Returns whether this vector has opposite direction compared to the other vector.
Returns whether this vector has similar direction compared to the other vector.
Increments both vector values - adds 1 to x and y. To avoid creating a new vector instance, use Vector2.plusAssign instead.
Increments all vector values - adds 1 to x, y and z. To avoid creating a new vector instance, use Vector3.plusAssign instead.
Increments all vector values - adds 1 to X, Y, Z and W components. To avoid creating a new vector instance, use Vector4.plusAssign instead.
Interpolate between the start and end of this range.
Returns true if this vector is collinear with the other vector
Returns true if this vector is opposite collinear with the other vector
Returns true if this vector is opposite perpendicular with the other vector
A utility factory function that allows to create Matrix4 instances with named parameters.
Modifies x and y components of this vector.
Creates a range by shifting this range's start and endInclusive by the subtrahend.
Modifies x and y components of this vector.
Modifies X and Y components of this vector.
Modifies X, Y, and Z components of this vector.
Modifies x and y components of this vector.
Creates a range by shifting this range's start and endInclusive by the addend.
Modifies x and y components of this vector.
Modifies X and Y components of this vector.
Modifies X, Y, and Z components of this vector.
Returns a pseudo-random, standard Gaussian distributed Float value from MathUtils.random's sequence. The distribution is centered to this range's center and is scaled so this range is six standard deviations wide.
Returns a triangularly distributed random number in this range, with the mode centered in this range, giving a symmetric distribution.
Returns a triangularly distributed random number in this range, where values around the mode are more likely. normalizedMode must be a value in the range 0.0..1.0 and represents the fractional position of the mode across the range.
Creates a range by scaling the range's start and endInclusive by this multiplier.
Creates a range by scaling this range's start and endInclusive by the multiplier.
Inverts currently stored values.
Inverts currently stored X and Y values.
Inverts stored X, Y and Z values.
Inverts stored X, Y, Z, and W values.
Constructs a new Vector4 instance copying values from the passed Vector2 instances.
Constructs a new Vector4 instance copying values from the passed Vector3 instance. An equivalent of Vector4 constructor that supports Kotlin syntax features: named parameters with default values.
Constructs a new Vector4 instance. An equivalent of Vector4 constructor that supports Kotlin syntax features: named parameters with default values.
Returns a vector of same length with the given angle in degree
Returns a vector of same length rotated by the given angle in degree
Custom operator to apply cross multiplication.
Calculates the 2D cross product between this and the other vector