Module swim.math
Package swim.math

Class R2Circle

    • Field Detail

      • cx

        public final double cx
      • cy

        public final double cy
      • r

        public final double r
    • Constructor Detail

      • R2Circle

        public R2Circle​(double cx,
                        double cy,
                        double r)
    • Method Detail

      • xMin

        public final double xMin()
        Specified by:
        xMin in class R2Shape
      • yMin

        public final double yMin()
        Specified by:
        yMin in class R2Shape
      • xMax

        public final double xMax()
        Specified by:
        xMax in class R2Shape
      • yMax

        public final double yMax()
        Specified by:
        yMax in class R2Shape
      • contains

        public boolean contains​(R2Point point)
      • contains

        public boolean contains​(R2Box box)
      • contains

        public boolean contains​(R2Circle circle)
      • intersects

        public boolean intersects​(R2Point point)
      • intersects

        public boolean intersects​(R2Box box)
      • intersects

        public boolean intersects​(R2Circle circle)
      • canEqual

        protected boolean canEqual​(R2Circle that)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • of

        public static R2Circle of​(double cx,
                                  double cy,
                                  double r)