Hello.
Could we have a
boolean equals(Vector3D other,
double tolerance)
method?
Or even
static boolean equals(Vector3D v1,
Vector3D v2,
double tolerance)
that would return true if the components are equal within the given
tolerance.
Best,
Gilles
P.S. It seems that checking for exact equality (as the "equal(Object)"
method does) is not very useful: If the two vectors being compared
come from different computations, they will (most of the time) be
different although, at the precision-level, they should be considered
equal.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
|