Thanks.
But how does it help in any program?
I mean why would one use normalise() in his program, does it help in any kind of function?
 
 
Jasmine Kwok
 
----- Original Message -----
Sent: Wednesday, February 12, 2003 3:37 PM
Subject: Re: [JAVA3D] Function of normalise()

Normalising a vector is giving him the unitary lenght, by definition. The function simply calculate the lenght (square root of the sum of the square of each composant) and then divide every composant by it .. so the function is really doing what it should =)
----- Original Message -----
Sent: Wednesday, February 12, 2003 12:09 AM
Subject: [JAVA3D] Function of normalise()

Dear all,
 
Does anyone has any idea what exactly does the normalize() in Vector3d does?
How come the length of the vector becomes 1.0 after it is normalized, regardless of the values of x, y & z.
I need some explanation on this as the API does not explain the method's function in details.
I would be thankful to anyone who can provide me with a simple explanation on this.
 
Cheers,
Jasmine Kwok

Reply via email to