Normalise is used for quite good for a few things. Its useful when comparing any two vectors, means that sometimes you can do comparisons between the components as opposed to the vector itself. Also, isn't it used in conjuction with the dot product (or is that the cross product) to work out the cosine of the angle between two vectors.
I suppose its also useful for working out a combined normal for a vertex that is shared by multiple geometries. Kev > 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 ----- > From: Patrick-Emmanuel Boulanger-Nadeau > To: [EMAIL PROTECTED] > 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 ----- > From: Jasmine Kwok > To: [EMAIL PROTECTED] > 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 =========================================================================== 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".
