Normalize Zero Vector?
#6
Simply changing this line to something like:
double Len = 1.0 / (Length() == 0) ? 0.0000000001 : Length();
should work right?
Reply
Thanks given by:


Messages In This Thread
Normalize Zero Vector? - by DiamondToaster - 07-17-2015, 08:34 AM
RE: Normalize Zero Vector? - by NiLSPACE - 07-17-2015, 07:09 PM
RE: Normalize Zero Vector? - by DiamondToaster - 07-18-2015, 01:38 AM
RE: Normalize Zero Vector? - by NiLSPACE - 07-18-2015, 02:31 AM
RE: Normalize Zero Vector? - by DiamondToaster - 07-19-2015, 05:40 AM
RE: Normalize Zero Vector? - by NiLSPACE - 07-19-2015, 06:18 AM
RE: Normalize Zero Vector? - by xoft - 07-19-2015, 06:25 AM
RE: Normalize Zero Vector? - by DiamondToaster - 07-20-2015, 03:03 AM
RE: Normalize Zero Vector? - by xoft - 07-20-2015, 04:15 AM



Users browsing this thread: 2 Guest(s)