Back to class index
Plane[Class Summary]
normal
d
ctor (+6 overloads)
IsDegenerate()[const]
Set(v1,v2,v3) (+1 overload)
ReverseNormal()
PointOnPlane()[const]
Point(u,v)[const] (+1 overload)
Translate(offset)
Transform(transform) (+3 overloads)
IsInPositiveDirection(directionVector)[const]
IsOnPositiveSide(point)[const]
ExamineSide(triangle)[const]
AreOnSameSide(p1,p2)[const]
Distance(point)[const] (+4 overloads)
SignedDistance(point)[const] (+11 overloads)
OrthoProjection()[const]
Project(point)[const] (+5 overloads)
ProjectToNegativeHalf(point)[const]
ProjectToPositiveHalf(point)[const]
MirrorMatrix()[const]
Mirror(point)[const]
Refract(...)[const]
ClosestPoint(point)[const] (+2 overloads)
Contains(point,epsilon)[const] (+6 overloads)
SetEquals(plane,epsilon)[const]
Equals(other,epsilon)[const]
BitEquals(other)[const]
IsParallel(plane,epsilon)[const]
DihedralAngle(plane)[const]
Intersects(...)[const] (+14 overloads)
Clip(line)[const] (+3 overloads)
PassesThroughOrigin(epsilon)[const]
GenerateCircle(...)[const]
ToString()[const]
SerializeToString()[const]
SerializeToCodeString()[const]
IntersectLinePlane(...)[static]
FromString(str,outEndStr)[static] (+1 overload)

Plane::normal

Syntax

float4 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.

Syntax

float 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:

  • If this variable is positive, the vector space origin (0,0,0) is on the negative side of this plane.

  • If this variable is negative, the vector space origin (0,0,0) is on the on the positive side of this plane.

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.