gcode-preview - v3.0.0-alpha.5
    Preparing search index...

    Class BoundingBox

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get isValid(): boolean

      Checks if the bounding box has been updated with at least one finite point.

      Returns boolean

      True if at least one finite point has been added, false otherwise.

    Methods

    • Updates the bounding box with the given coordinates. Points with any non-finite coordinate (NaN or Infinity) are ignored.

      Parameters

      • x: number

        The X coordinate.

      • y: number

        The Y coordinate.

      • z: number

        The Z coordinate.

      Returns void