Vec2.near

bool near(graphene.vec2.Vec2 v2, float epsilon)

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

Parameters

v2a #graphene_vec2_t
epsilonthe threshold between the two vectors

Returns

true if the two vectors are near each other