Class IPoint


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

      • ZERO

        public static final IPoint ZERO
      • _x

        @Internal
        public final int _x
      • _y

        @Internal
        public final int _y
    • Constructor Detail

      • IPoint

        public IPoint​(int x,
                      int y)
    • Method Detail

      • _makeFromLong

        @Internal
        public static IPoint _makeFromLong​(long l)
      • offset

        @NotNull
        public @NotNull IPoint offset​(int dx,
                                      int dy)
      • offset

        @NotNull
        public @NotNull IPoint offset​(@NotNull
                                      @NotNull IPoint vec)
      • scale

        @NotNull
        public @NotNull IPoint scale​(int scale)
      • scale

        @NotNull
        public @NotNull IPoint scale​(int sx,
                                     int sy)
      • inverse

        @NotNull
        public @NotNull IPoint inverse()
      • isEmpty

        public boolean isEmpty()
      • toPoint

        @NotNull
        @Contract("-> new")
        public @NotNull Point toPoint()
      • getX

        public int getX()
      • getY

        public int getY()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public IPoint withX​(int _x)
        Returns:
        this.
      • withY

        public IPoint withY​(int _y)
        Returns:
        this.