The problem is that you are using the same VectorUtil object as the source
and destination of your calculations. You need to either alter the
cross() method so that it returns the cross product calculation, ie. u =
u.cross(v); or you need to create temporary doubles in the cross() method
to store
Errr,
I think this is a little off topic, but doesn't the first line in your 'cross' method
have a
'-' that should be a '*' ?
Rob
Karthik Vishwanath wrote:
> Hi all,
> The attached file just tries to define a simple "cross product"
> between two vectors. the results are incorrect and
Hi all,
The attached file just tries to define a simple "cross product"
between two vectors. the results are incorrect and i don't know why.
I run jdk1.1.7 on glibc, RedHat 5.1 on a 200Mhz Pc.
Thanks in advance,
-Karthik.
+