compareTo

operator fun Vector2.compareTo(vector2: Vector2): Int

Allows to compare which Vector2 has greater overall length.

Return

1 if this vector has greater length. 0 if vectors are equal. -1 if the other vector is greater.

Parameters

vector2

will be compared to this vector.


operator fun Vector3.compareTo(vector3: Vector3): Int

Allows to compare which Vector3 has greater overall length.

Return

1 if this vector has greater length. 0 if vectors are equal. -1 if the other vector is greater.

Parameters

vector3

will be compared to this vector.


operator fun Vector4.compareTo(vector4: Vector4): Int

Allows to compare which Vector4 has greater overall length.

Return

1 if this vector has greater length. 0 if vectors are equal. -1 if the other vector is greater.

Parameters

vector4

will be compared to this vector.