Beispiel #1
0
        public int CompareTo(object obj)
        {
            LimitantesDaCena l = (LimitantesDaCena)obj;
            int retorno        = Mathf.RoundToInt(Mathf.Abs(l.xMax - xMax) + Mathf.Abs(l.xMin - xMin) + Mathf.Abs(l.yMax - yMax) + Mathf.Abs(l.yMin - yMin));

            Debug.Log("comparação de limitantes: " + retorno + " : " + Mathf.Abs(l.xMax - xMax) + " : " + Mathf.Abs(l.xMin - xMin) + " : " + Mathf.Abs(l.yMax - yMax) + " : " + Mathf.Abs(l.yMin - yMin));
            return(retorno);
        }
Beispiel #2
0
 public int CompareTo(LimitantesDaCena obj)
 {
     return(CompareTo((object)obj));
 }