Hello,
I read in the Java 3D API for Tuple3f.hashCode():
"Two different Tuple3f objects with identical data values (ie, returns true
for equals(Tuple3f) ) will return the same hash number. Two tuples with
different data members may return the same hash value, although this is not
likely."

but I get these very, very unlikely results:

Tuple3f (1.0, -1.0, 1.0) hashCode() -1082130432
Tuple3f (-1.0, 1.0, 1.0) hashCode() -1082130432
Tuple3f (-1.0, -1.0, -1.0) hashCode() -1082130432
Tuple3f (1.0, 1.0, -1.0) hashCode() -1082130432
Tuple3f (1.0, 1.0, 1.0) hashCode() 1065353216
Tuple3f (-1.0, -1.0, 1.0) hashCode() 1065353216
Tuple3f (-1.0, 1.0, -1.0) hashCode() 1065353216
...

This must be a miracle ;-( Marco.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to