Back to class index
| Plane::normalSyntaxfloat4 Plane::normal; [1 line of code]The direction this plane is facing at. This direction vector is always normalized. If you assign to this directly, please remember to only assign normalized direction vectors. Syntaxfloat Plane::d; [1 line of code]The offset of this plane from the origin. The value -d gives the signed distance of this plane from origin. Denoting normal:=(a,b,c), this class uses the convention ax+by+cz = d, which means that:
Note Some sources use the opposite convention ax+by+cz+d = 0 to define the variable d. When comparing equations and algorithm regarding planes, always make sure you know which convention is being used, since it affects the sign of d. |