类 Extent3D

  • 所有已实现的接口:
    Cloneable

    public class Extent3D
    extends Extent
    作者:
    Yaqiang Wang
    • 字段详细资料

      • minZ

        public double minZ
      • maxZ

        public double maxZ
    • 构造器详细资料

      • Extent3D

        public Extent3D()
        Constructor
      • Extent3D

        public Extent3D​(double xMin,
                        double xMax,
                        double yMin,
                        double yMax,
                        double zMin,
                        double zMax)
        Constructor
        参数:
        xMin - Minimum X
        xMax - Maximum X
        yMin - Minimum Y
        yMax - Maximum Y
        zMin - Minimum Z
        zMax - Maximum Z
    • 方法详细资料

      • getZLength

        public double getZLength()
        Get Z axis length
        返回:
        Z axis length
      • getCenter

        public double[] getCenter()
        Get center point
        返回:
        Center point
      • is3D

        public boolean is3D()
        Get is 3D or not
        覆盖:
        is3D 在类中 Extent
        返回:
        false
      • intersects

        public boolean intersects​(Extent extent)
        Tests whether this extent intersects the second extent.
        覆盖:
        intersects 在类中 Extent
        参数:
        extent - The second extent
        返回:
        Boolean
      • union

        public Extent3D union​(Extent3D ex)
        Return union extent
        参数:
        ex - Other extent
        返回:
        Union extent
      • shift

        public Extent3D shift​(double dx,
                              double dy,
                              double dz)
        Shift extent
        参数:
        dx - X shift value
        dy - Y shift value
        dz - Z shift value
        返回:
        Shifted extent
      • extend

        public Extent3D extend​(double ratio)
        Extends extent by ratio
        覆盖:
        extend 在类中 Extent
        参数:
        ratio - The ratio
        返回:
        Extended extent
      • extend

        public Extent3D extend​(double dx,
                               double dy,
                               double dz)
        Extends extent
        参数:
        dx - X delta
        dy - Y delta
        dz - Z delta
        返回:
        Extended extent
      • asNonZero

        public void asNonZero()
        Make the extent with non-zero length of the dimensions
        覆盖:
        asNonZero 在类中 Extent
      • clone

        public Object clone()
        Clone
        覆盖:
        clone 在类中 Extent
        返回:
        Extent object