Class Point

java.lang.Object
com.myscript.iink.graphics.Point

public class Point extends Object
Represents a point on the 2D plane.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    float
    The x position of the point.
    float
    The y position of the point.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    Point(float x, float y)
    Constructor.
    Point(@NotNull Point other)
    Copy constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object obj)
     
    int
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      public float x
      The x position of the point.
    • y

      public float y
      The y position of the point.
  • Constructor Details

    • Point

      public Point(float x, float y)
      Constructor.
      Parameters:
      x - the x coordinate of the point.
      y - the y coordinate of the point.
    • Point

      public Point(@NotNull @NotNull Point other)
      Copy constructor.
      Parameters:
      other - copied object.
    • Point

      public Point()
      Default constructor.
  • Method Details

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object