Class XRectangle2D


  • public class XRectangle2D
    extends java.lang.Object
    • Field Detail

      • x

        public final double x
      • y

        public final double y
      • width

        public final double width
      • height

        public final double height
    • Constructor Detail

      • XRectangle2D

        public XRectangle2D​(double x,
                            double y,
                            double width,
                            double height)
    • Method Detail

      • getWidth

        public double getWidth()
      • getHeight

        public double getHeight()
      • getX

        public double getX()
      • getY

        public double getY()
      • getCenterX

        public double getCenterX()
      • getCenterY

        public double getCenterY()
      • getMinX

        public double getMinX()
      • getMaxX

        public double getMaxX()
      • getMinY

        public double getMinY()
      • getMaxY

        public double getMaxY()
      • intersects

        public boolean intersects​(XRectangle2D other)
      • contains

        public boolean contains​(XPoint2D point)
      • contains

        public boolean contains​(double xp,
                                double yp)