#include <PlaneTypes.h>
◆ EClipSegmentType
| Enumerator |
|---|
| FullyClipped | |
| FirstClipped | |
| SecondClipped | |
| NotClipped | |
◆ TPlane3() [1/5]
◆ TPlane3() [2/5]
◆ TPlane3() [3/5]
N is specified, c = Dot(N,P) where P is a point on the plane.
◆ TPlane3() [4/5]
N = Cross(P1-P0,P2-P0)/Length(Cross(P1-P0,P2-P0)), c = Dot(N,P0) where P0, P1, P2 are points on the plane.
◆ TPlane3() [5/5]
◆ ClipSegment()
Clip line segment defined by two points against plane. Region of Segment on positive side of Plane is kept.
- Parameters
-
| Point0 | first point of segment |
| Point1 | second point of segment |
- Returns
- FullyClipped if the segment lies fully behind or exactly in the plane FirstClipped if Point0 became the intersection point on the plane SecondClipped if Point1 became the intersection point on the plane NotClipped if the segment lies fully in front of the plane
◆ DistanceTo()
Compute d = Dot(N,P)-c where N is the plane normal and c is the plane constant. This is a signed distance. The sign of the return value is positive if the point is on the positive side of the plane, negative if the point is on the negative side, and zero if the point is on the plane.
◆ FindLineIntersection()
Compute intersection of Line with Plane
- Parameters
-
| LineOrigin | origin of line |
| LineDirection | direction of line |
| HitPointOut | intersection point, or invalid point if line is parallel to plane |
- Returns
- true if Line intersects Plane and IntersectionPointOut is valid
◆ InverseTransform()
Transform the plane by the inverse of the given transform
◆ operator FPlane()
◆ Transform()
Transform the plane by the given transform
◆ WhichSide()
The "positive side" of the plane is the half space to which the plane normal points. The "negative side" is the other half space. The function returns +1 when P is on the positive side, -1 when P is on the the negative side, or 0 when P is on the plane.
◆ Constant
◆ Normal
The documentation for this struct was generated from the following file: