Spliting polygon from BSP FAQ

Started by
5 comments, last by periergos 21 years, 1 month ago
well my question is simple.... I was reading the SplitPolygon function in the BSP FAQ but i didn''t understand one line! this: real sect = - part->Classify_Point(ptA) / (part->Normal() | v); what is the "|" symbol in the end of this line? thank you!!
Advertisement
edit ignore this:

it's a bitwise OR

A||B will return true if A or B are non-zero
A|B will return the combined bits.

If
A =  1001001 andB =  0001101 thenA|B =1001101  


[edited by - petewood on March 19, 2003 8:58:07 AM]
It's not going to be the bitwise operator in this case, since it's operating on a vector -- instead, it's an overloaded mathematical operator. Dot product, maybe?

EDIT: Checked out the FAQ and saw this:

quote:The overloaded operator for a dot product (inner product, scalar product, etc.) of two vectors is the '|' symbol


[edited by - Alimonster on March 19, 2003 7:38:20 AM]
My god!!!
Guys!!! Lets get serious!!!!You think that if a had the vector class definition i would ask you?????
I dont have it!!!
BSP FAQ dont have it!!!
thats why i am asking you!!!
Its definately a dotproduct.
quote:Original post by periergos
My god!!!
Guys!!! Lets get serious!!!!You think that if a had the vector class definition i would ask you?????
I dont have it!!!
BSP FAQ dont have it!!!
thats why i am asking you!!!

Why are you completely ignoring the information I posted several hours ago?
Seriously. The information you needed was in the very FAQ you were reading, yet you didn''t find it. Don''t go nuts.

This topic is closed to new replies.

Advertisement