I was just wondering..the method equals() that compares two vectors...does
it says it compare all the values of the vector..but what values are those??
Does it compare the length, direction and?
I kinda need to compare two vectors and see if the lenght and direction are
the same, but it should ma
Hi Flavius,
A Vector3f contains three values (x, y and z). Therefore a vector denotes a
direction (not a position) in 3-space. The equals() method will compare the
x-, y- and z-value. You say that it should matter where the vector is in
space, but I suspect that you mean that it should _not_ matte
Hi Jørn...
Yes, that's right, I meant it should not matter...I'm sorry for typing so
bad, didn't re-read to check.
So let me see if I got this right...when you create a new vector with the
values (x,y,z), it's basically an arrow pointing from the origin to those
coordinates? Or from where is that
Hi Flavius,
The vector is pointing from anywhere you like - it doesn't say in itself.
Just like 5 meters can be measured anywhere you like. If you need a
starting position you must use a Point3f in addition to that vector. Of
course there are many instances where the vector is implicitly referenci
ok, thanx a lot...
I'm sending a mail to your address...cause I really can't explain this good
without any pictures so I'll try to draw something for you =)
Thanx
Flavius
From: Jørn Cornelius Olsen <[EMAIL PROTECTED]>
Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
To: [EMAIL PROTECT