/// <summary>
 /// returns the edge coordinate closest to the input cartesian coordinate
 /// </summary>
 public static Vector3Int ClosestToCartesianCoordinate(Vector3 cartesianCoordinate)
 {
     return(HexConverter.CartesianCoordToClosestEdgeCoord(cartesianCoordinate));
 }
Esempio n. 2
0
        public static Vector2 CornerCoordToNormalizedPosition(Vector3Int cornerCoordinate, float minX, float maxX, float minZ, float maxZ)
        {
            Vector3 cartesianCoord = HexConverter.CornerCoordToCartesianCoord(cornerCoordinate);

            return(CartesianCoordToNormalizedPosition(cartesianCoord, minX, maxX, minZ, maxZ));
        }