public class Vector2Int
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
int | 
x
x and y coordinates of the object 
 | 
int | 
y  | 
| Constructor and Description | 
|---|
Vector2Int(int x,
          int y)
Creates a new Vector2Int object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Object obj)
This is a method override which allows the use of equality in the newly defined Vector2Int objects. 
 | 
int | 
getX()
Getter for x coordinate. 
 | 
int | 
getY()
Getter for y coordinate. 
 | 
java.lang.String | 
toString()
This method returns a String representation of the Vector2Int object 
 | 
public Vector2Int(int x,
                  int y)
x - - x coordinate.y - - y coordinate.public int getX()
public int getY()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - - The Vector2Int object.public java.lang.String toString()
toString in class java.lang.Object