|
 |
"GioSeregni" <gms### [at] hotmail com> wrote:
> Nothing, I think the most efficient solution is to ignore float comparisons,
> much less divisions.
something like:
##for floats:
## Almost equal.
proc ae(a, b): bool
const Epsilon = 0.000001
return abs(a - b) <= Epsilon
#for tw vac's a & b
proc ae(a,b): bool
return ae(a.x, b.x) and ae(a.y, b.y) and ae(a.z, b.z)
depending on the lang.
ingo
Post a reply to this message
|
 |