Class LineSubset3D

    • Field Detail

      • line

        private final Line3D line
        The line containing this instance.
    • Constructor Detail

      • LineSubset3D

        LineSubset3D​(Line3D line)
        Construct a new instance based on the given line.
        Parameters:
        line - line containing the instance
    • Method Detail

      • getLine

        public Line3D getLine()
        Get the line containing this subset.
        Returns:
        the line containing this subset
      • getCentroid

        public abstract Vector3D getCentroid()
        Get the centroid, or geometric center, of the line subset or null if the subset is empty or infinite.
        Returns:
        the centroid of the line subset, or null if the subset is empty or infinite
      • getBounds

        public abstract Bounds3D getBounds()
        Get the 3D bounding box of the line subset or null if the subset is empty or infinite.
        Returns:
        the 3D bounding box the line subset or null if the subset is empty or infinite