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