Back to class index
Plane[Class Summary]
normal
d
ctor (+6 overloads)
Set(v1,v2,v3) (+1 overload)
ReverseNormal()
PointOnPlane()[const]
Transform(transform) (+3 overloads)
IsInPositiveDirection(directionVector)[const]
IsOnPositiveSide(point)[const]
ExamineSide(triangle)[const]
AreOnSameSide(p1,p2)[const]
Distance(point)[const] (+3 overloads)
SignedDistance(point)[const]
OrthoProjection()[const]
Project(point)[const] (+5 overloads)
ObliqueProjection(...)[const]
ObliqueProject(...)[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]
IsParallel(plane,epsilon)[const]
DihedralAngle(plane)[const]
Intersects(...)[const] (+14 overloads)
Clip(line)[const] (+3 overloads)
PassesThroughOrigin(epsilon)[const]
GenerateCircle(...)[const]

Plane::IsOnPositiveSide

Syntax

bool Plane::IsOnPositiveSide(const float3 &point) const; [4 lines of code]

Tests if the given point lies on the positive side of this plane.

A plane divides the space in three sets: the negative halfspace, the plane itself, and the positive halfspace. The normal vector of the plane points towards the positive halfspace.

Return Value

This function returns true if the given point lies either on this plane itself, or in the positive halfspace of this plane.

Performance

4.105nsecs/call ≈ 243.59M calls/second ≈ 4.06M calls/frame (@ 60fps).
This function does not perform dynamic memory allocation.

See Also

IsInPositiveDirection, AreOnSameSide(), Distance(), SignedDistance().

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index