Class Point

java.lang.Object
io.scanbot.sdk.geometry.Point

public class Point extends Object
Represents a point with integer coordinates in 2D space.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Point(int x, int y)
    Constructs a point with given coordinates.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the x-coordinate of the point.
    int
    Returns the y-coordinate of the point.
    void
    setX(int x)
    Sets the x-coordinate of the point.
    void
    setY(int y)
    Sets the y-coordinate of the point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Point

      public Point(int x, int y)
      Constructs a point with given coordinates.
      Parameters:
      x - x-coordinate
      y - y-coordinate
  • Method Details

    • getY

      public int getY()
      Returns the y-coordinate of the point.
      Returns:
      y-coordinate
    • setY

      public void setY(int y)
      Sets the y-coordinate of the point.
      Parameters:
      y - y-coordinate
    • getX

      public int getX()
      Returns the x-coordinate of the point.
      Returns:
      x-coordinate
    • setX

      public void setX(int x)
      Sets the x-coordinate of the point.
      Parameters:
      x - x-coordinate