near

fun near(v2: Vec2, epsilon: Float): Boolean

Compares the two given #graphene_vec2_t vectors and checks whether their values are within the given @epsilon.

Return

true if the two vectors are near each other

Since

1.2

Parameters

v2

a #graphene_vec2_t

epsilon

the threshold between the two vectors