PiMath API
    Preparing search index...

    Class Plane3

    A plane of space, stored by a point and a normal vector. Built from a configuration object with one of: point and normal, point and two directions, an equation, three points, or four coefficients [a, b, c, d] of ax + by + cz + d = 0.

    new Plane3({equation: "x+2y+3z-6=0"}).normal.display // "((1,2,3))"
    

    Implements

    Index
    • Angle between this plane and another plane, line, or vector.

      • Plane3 → dihedral angle (angle between normals).
      • Line3 / Vector → angle between the line/vector and the plane (complement of the angle with the normal).

      Parameters

      • vector: Vector
      • Optionalsharp: boolean
      • Optionalradian: boolean

      Returns number

      if value is a Vector that is not 3D

    • Angle between this plane and another plane, line, or vector.

      • Plane3 → dihedral angle (angle between normals).
      • Line3 / Vector → angle between the line/vector and the plane (complement of the angle with the normal).

      Parameters

      • line: Line3
      • Optionalsharp: boolean
      • Optionalradian: boolean

      Returns number

      if value is a Vector that is not 3D

    • Angle between this plane and another plane, line, or vector.

      • Plane3 → dihedral angle (angle between normals).
      • Line3 / Vector → angle between the line/vector and the plane (complement of the angle with the normal).

      Parameters

      • plane: Plane3
      • Optionalsharp: boolean
      • Optionalradian: boolean

      Returns number

      if value is a Vector that is not 3D

    • Copy the mathematical state of another instance into this (display state is NOT transferred — the receiver keeps its own formatting). Entry point used when constructing/parsing from a same-type input. Distinct from clone. Classes without a real implementation throw NotImplementedError.

      Parameters

      Returns this

    • Intersection of this plane with a line.

      • hasIntersection: line meets the plane at exactly one point.
      • isOnPlane: line lies entirely on the plane (direction ⊥ normal AND base point satisfies the equation).
      • isParallel: direction ⊥ normal but base point is NOT on the plane.

      Parameters

      Returns PlaneLineIntersection

    • True when both planes are the same plane, whatever their normal vector and reference point.

      Parameters

      Returns boolean

    • True when the plane is parallel to another plane (the normals are parallel) or to a line (the direction is perpendicular to the normal). A plane is parallel to itself.

      Parameters

      Returns boolean

    • True when the plane is parallel to another plane (the normals are parallel) or to a line (the direction is perpendicular to the normal). A plane is parallel to itself.

      Parameters

      Returns boolean

    • True when the plane is perpendicular to another plane (the normals are perpendicular) or to a line (the direction is parallel to the normal).

      Parameters

      Returns boolean

    • True when the plane is perpendicular to another plane (the normals are perpendicular) or to a line (the direction is parallel to the normal).

      Parameters

      Returns boolean

    • The plane of a cartesian equation written in a string, such as "x+2y+3z-6=0".

      Parameters

      • str: string

      Returns Plane3