Class PointD

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

public class PointD extends Object
Represents a high-precision point on the 2D plane.
Since:
4.1
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object obj)
     
    int
     
    boolean
    Checks if point values are finite.
    @NotNull String
     

    Methods inherited from class java.lang.Object

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

    • x

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

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

    • PointD

      public PointD()
      Default constructor.
    • PointD

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

      public PointD(@NotNull @NotNull PointD other)
      Copy constructor.
      Parameters:
      other - copied object.
  • Method Details

    • isFinite

      public boolean isFinite()
      Checks if point values are finite.
      Returns:
      true if both x and y are finite, otherwise false.
    • 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