Board index » cppbuilder » Normalizing a vector

Normalizing a vector


2006-09-04 06:35:14 AM
cppbuilder71
Hi there Im normalising a color vector and I get the following error message
"invalid floating point operation". Basically what I do is the following:
Red = r/(r+g+b)
Green = g/(r+g+b)
Blue = b/(r+g+b)
Any help would be greatly appreciated
 
 

Re:Normalizing a vector

On Mon, 4 Sep 2006 00:35:14 +0200, Michael wrote:
Quote
Hi there Im normalising a color vector and I get the following error message
"invalid floating point operation". Basically what I do is the following:
Show the actual code please
--
Liz
Please check the newsgroup guidelines and general netiquette
info.borland.com/newsgroups/guide.html
info.borland.com/newsgroups/guide.html
info.borland.com/newsgroups/netiquette.html
 

Re:Normalizing a vector

What happens for Black = (0,0,0)?
"Michael" < XXXX@XXXXX.COM >wrote in message
Quote
Hi there Im normalising a color vector and I get the following error
message "invalid floating point operation". Basically what I do is the
following:

Red = r/(r+g+b)
Green = g/(r+g+b)
Blue = b/(r+g+b)

Any help would be greatly appreciated

 

{smallsort}