public override bool Equals(object obj)
 {
     if (obj == null || GetType() != obj.GetType())
     {
         return(false);
     }
     else
     {
         FractionalCube b = (FractionalCube)obj;
         return(this == b);
     }
 }
Exemple #2
0
 public static CubeHex FromCartesian(Vector2 position)
 {
     return(FractionalCube.FromCartesian(position).GetRounded());
 }