Vec2.near

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

class Vec2
bool
near

Parameters

v2 graphene.vec2.Vec2

a #graphene_vec2_t

epsilon float

the threshold between the two vectors

Return Value

Type: bool

true if the two vectors are near each other