Vec2.near

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

class Vec2
bool
near
(,
float epsilon
)

Parameters

v2 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

Meta