Vector2
Double-precision 2D vector.
Constructors
Types
Functions
distanceTo
Link copied to clipboard
Calculates the Euclidean distance to other.
perpendicular
Link copied to clipboard
fun perpendicular(polarity: YPolarity = YPolarity.CW_NEGATIVE_Y): Vector2
Content copied to clipboard
Calculates a vector perpendicular to the current one.
squaredDistanceTo
Link copied to clipboard
Calculates the squared Euclidean distance to other.
toDoubleArray
Link copied to clipboard
Casts to DoubleArray.
toInt
Link copied to clipboard
Casts to IntVector2.
unaryMinus
Link copied to clipboard