Class Plane

java.lang.Object
eu.svjatoslav.sixth.e3d.geometry.Plane

public class Plane extends Object
Represents an infinite plane in 3D space using the Hesse normal form.

Planes are fundamental to BSP (Binary Space Partitioning) tree operations in CSG. They divide 3D space into two half-spaces.

See Also:
  • Field Details

    • EPSILON

      public static final double EPSILON
      Epsilon value used for floating-point comparisons in BSP operations. Smaller values provide higher precision but may cause issues with near-coplanar polygons. 1e-5 is a good balance for most 3D geometry.
      See Also:
    • normal

      public Point3D normal
      The unit normal vector perpendicular to the plane surface.
    • distance

      public double distance
      The signed distance from the origin to the plane along the normal.
  • Constructor Details

    • Plane

      public Plane(Point3D normal, double distance)
      Creates a plane with the given normal and distance.
      Parameters:
      normal - the unit normal vector
      distance - the signed distance from origin to the plane
  • Method Details