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