Class EmbeddedTreeLineSubset3D

    • Field Detail

      • region

        private final RegionBSPTree1D region
        The 1D region representing the area on the line.
    • Constructor Detail

      • EmbeddedTreeLineSubset3D

        public EmbeddedTreeLineSubset3D​(Line3D line)
        Construct a new, empty subset for the given line.
        Parameters:
        line - line defining the subset
      • EmbeddedTreeLineSubset3D

        public EmbeddedTreeLineSubset3D​(Line3D line,
                                        boolean full)
        Construct a new subset for the given line. If full is true, then the subset will cover the entire line; otherwise, it will be empty.
        Parameters:
        line - line defining the subset
        full - if true, the subset will cover the entire space; otherwise it will be empty
      • EmbeddedTreeLineSubset3D

        public EmbeddedTreeLineSubset3D​(Line3D line,
                                        RegionBSPTree1D region)
        Construct a new instance from its defining line and subspace region.
        Parameters:
        line - line defining the subset
        region - subspace region for the subset
    • Method Detail

      • getSize

        public double getSize()
        Get the size of the instance.
        Returns:
        the size of the instance
      • getCentroid

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

        public Bounds3D getBounds()
        Get the 3D bounding box of the line subset or null if the subset is empty or infinite.
        Specified by:
        getBounds in class LineSubset3D
        Returns:
        the 3D bounding box the line subset or null if the subset is empty or infinite
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object