Do you have a test program?  A simple test shows that this works as
expected:

import javax.vecmath.*;

public class Normalize {
    public static void main(String[] args) {
        Vector3f vIn = new Vector3f(0.1f, 0.2f, 0.3f);
        Vector3f vOut = new Vector3f();

        vOut.normalize(vIn);
        System.out.println("vIn = " + vIn);
        System.out.println("vOut = " + vOut);
    }
}

% java Normalize
vIn = (0.1, 0.2, 0.3)
vOut = (0.26726124, 0.5345225, 0.8017837)

--
Kevin Rushforth
Java 3D Team
Sun Microsystems

[EMAIL PROTECTED]


>Date: Thu, 27 Dec 2001 16:33:57 +0100
>From: Joachim Diepstraten <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] vector3f.normalize(vector3f) doesn't work
>To: [EMAIL PROTECTED]
>
>Hi Yuri
>
>> from your description it is not a bug. Here is what Java3D Doc has about
>> Vector3f.normalize(Vector3f):
>>
>> public final void normalize(Vector3f v1)
>> Sets the value of this vector to the normalization of vector v1.
>> Parameters:
>> v1 - the un-normalized vector
>>
>> So if you call vector3f.normalize(otherVector), otherVector is an input and
>> vector3f will contain normalized otherVector.
>Which it doesn't
>
>EOF,
> J.D.
>
>--
>Explore SRT with the help of Java3D
>(http://wwwvis.informatik.uni-stuttgart.de/relativity/minkowski)
>(http://www.antiflash.net/java3d/relativity (mirror)
>
>===========================================================================
>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".

===========================================================================
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