unitX

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

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

Since

v2.0.0


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

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

Since

v2.0.0


Deprecated

Use Vec2.unitX() instead.

Replace with

Vec2.unitX<Float>()

A standard unit vector in the direction of X axis.

Since

v1.1.0