Class PositionVector

java.lang.Object
com.takenoko.vector.Vector
com.takenoko.vector.PositionVector

public class PositionVector extends Vector
  • 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

      public PositionVector(Vector vector)
  • Method Details