Package com.takenoko.vector
Class PositionVector
java.lang.Object
com.takenoko.vector.Vector
com.takenoko.vector.PositionVector
-
Constructor Summary
ConstructorsConstructorDescriptionPositionVector(int q, int r, int s) Constructor for the Vector class.PositionVector(Vector vector) -
Method Summary
-
Constructor Details
-
PositionVector
public PositionVector(int q, int r, int s) Constructor for the Vector class. The vector is represented by its coordinates in a 2D hexagonal grid. The vector must respect q+r+s=0.- Parameters:
q- The q coordinate of the vector.r- The r coordinate of the vector.s- The s coordinate of the vector.
-
PositionVector
-
-
Method Details
-
copy
-