java.lang.Object
io.github.shimeoki.jfx.rasterization.Vector2i
All Implemented Interfaces:
Point2i

public final class Vector2i extends Object implements Point2i
Standard implementation of the Point2i.
Since:
2.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vector2i(int x, int y)
    Creates a new instance of Vector2i.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setX(int x)
    Sets the value of the first coordinate.
    void
    setY(int y)
    Sets the value of the second coordinate.
    int
    x()
    Gets the first coordinate of the position.
    int
    y()
    Gets the second coordinate of the position.

    Methods inherited from class java.lang.Object

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

    • Vector2i

      public Vector2i(int x, int y)
      Creates a new instance of Vector2i.
      Parameters:
      x - initial value of x (first) coordinate
      y - initial value of y (second) coordinate
      Since:
      2.0.0
  • Method Details

    • x

      public int x()
      Description copied from interface: Point2i
      Gets the first coordinate of the position.
      Specified by:
      x in interface Point2i
      Returns:
      x (first) integer coordinate
    • setX

      public void setX(int x)
      Description copied from interface: Point2i
      Sets the value of the first coordinate.
      Specified by:
      setX in interface Point2i
      Parameters:
      x - new value of x (first) coordinate as an integer
    • y

      public int y()
      Description copied from interface: Point2i
      Gets the second coordinate of the position.
      Specified by:
      y in interface Point2i
      Returns:
      y (second) integer coordinate
    • setY

      public void setY(int y)
      Description copied from interface: Point2i
      Sets the value of the second coordinate.
      Specified by:
      setY in interface Point2i
      Parameters:
      y - new value of y (second) coordinate as an integer