Board index » cppbuilder » Normalizing a vector
Michael
![]() CBuilder Developer |
Michael
![]() CBuilder Developer |
Normalizing a vector2006-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 |
Liz Albin
![]() CBuilder Developer |
2006-09-04 09:36:36 AM
Re:Normalizing a vector
On Mon, 4 Sep 2006 00:35:14 +0200, Michael wrote:
QuoteHi there Im normalising a color vector and I get the following error message 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 |
Roger
![]() CBuilder Developer |
2006-09-04 10:53:03 PM
Re:Normalizing a vector
What happens for Black = (0,0,0)?
"Michael" < XXXX@XXXXX.COM >wrote in message QuoteHi there Im normalising a color vector and I get the following error {smallsort} |