Class Point


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

      • ZERO

        public static final Point ZERO
      • _x

        @Internal
        public final float _x
      • _y

        @Internal
        public final float _y
    • Constructor Detail

      • Point

        public Point​(float x,
                     float y)
    • Method Detail

      • flattenArray

        @Contract("null -> null; !null -> new")
        @Nullable
        public static @org.jetbrains.annotations.Nullable float[] flattenArray​(@Nullable
                                                                               @Nullable Point[] pts)
      • fromArray

        @Contract("null -> null; !null -> new")
        @Nullable
        public static @Nullable Point[] fromArray​(@Nullable
                                                  @org.jetbrains.annotations.Nullable float[] pts)
      • offset

        @NotNull
        public @NotNull Point offset​(float dx,
                                     float dy)
      • offset

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

        @NotNull
        public @NotNull Point scale​(float scale)
      • scale

        @NotNull
        public @NotNull Point scale​(float sx,
                                    float sy)
      • inverse

        @NotNull
        public @NotNull Point inverse()
      • isEmpty

        public boolean isEmpty()
      • toIPoint

        @NotNull
        @Contract("-> new")
        public @NotNull IPoint toIPoint()
      • getX

        public float getX()
      • getY

        public float 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 Point withX​(float _x)
        Returns:
        this.
      • withY

        public Point withY​(float _y)
        Returns:
        this.