unitY

inline fun <T : Number, Comparable<T>> unitY(): Vec2<T>

Returns a standard unit vector in the direction of Y axis.

Since

v2.0.0


fun <T : Number, Comparable<T>> unitY(type: KClass<T>): Vec2<T>

Returns a standard unit vector in the direction of Y axis with coordinates of given type.

Since

v2.0.0


Deprecated

Use Vec2.unitY() instead.

Replace with

Vec2.unitY<Float>()

A standard unit vector in the direction of Y axis.

Since

v1.1.0