Exemple #1
0
        public StandardCoordinate HexToStandardCoordiante()
        {
            StandardCoordinate standard = new StandardCoordinate();

            standard.Z = Z * 1.5f;
            standard.X = Z * (RADIUS / 2f) + X * RADIUS;
            return(standard);
        }
Exemple #2
0
 public float StandardDistance(StandardCoordinate a, StandardCoordinate b)
 {
     return((a.X - b.X) * (a.X - b.X) + (a.Z - b.Z) * (a.Z - b.Z));
 }