- Joined
- Feb 6, 2008
- Messages
- 37,662
- Reaction score
- 2,383
- Points
- 203
- Location
- Wolfsburg
- Preferred Pronouns
- Sire
That is implementation dependent - In Orbiter and VC++ using IEEE floats, it is a NaN vector.I don't know what the function outputs when it gets (0,0,0), but other than that it should output an unit vector with the same direction as the input.
You can use both normalise() and unit(), they are technically the same function but have different ways to calculate the unit vector: normalise modifies the vector passed as argument, unit returns the unit vector for the input.