The distance from the plane to the origin, along its normal.
The normal of the plane.
Sets the plane based on a normal and a distance from the origin.
The x-component of the normal.
The y-component of the normal.
The z-component of the normal.
The distance from the origin.
Self for chaining.
An infinite plane. Internally, it's represented in a parametric equation form:
ax + by + cz + distance = 0.A plane is a normal and a distance from the origin along that normal. Define one with the constructor or setFromPointNormal from a normal and a point the plane passes through, or with set from the four coefficients. None of these normalize the normal they are given, and distance is only a true distance when the normal is unit length, so call normalize afterwards if it is not. intersectsRay and intersectsLine return whether a hit occurred and write the hit point into an optional vector. The ray's direction must be normalized.
Example