Plane
Represents a plane in Cartesian coordinates. The plane's X, Y and Z components indicate the plane's normal vector. The distance component indicates the plane's distance from the origin relative to its unit normal.
Constructors
Constructs a plane in the X-Y plane with its unit normal pointing along the Z axis.
Constructs a plane with specified normal vector components and distance from the origin. This constructor normalizes the components, ensuring that the plane has a unit normal vector.
Constructs a plane with the normal vector and distance from a specified plane.
Properties
Functions
Clips a line segment to this plane, returning an two-point array indicating the clipped segment. If the direction of the line formed by the two points is positive with respect to this plane's normal vector, the first point in the array will be the intersection point on the plane, and the second point will be the original segment end point. If the direction of the line is negative with respect to this plane's normal vector, the first point in the array will be the original segment's begin point, and the second point will be the intersection point on the plane. If the segment does not intersect the plane, null is returned. If the segment is coincident with the plane, the input points are returned, in their input order.
Computes the distance between this plane and a point.
Determines whether a specified line segment intersects this plane.
Determines whether two points are on the same side of this plane.
Transforms this plane by a specified matrix.