Exemple #1
0
 public float convertFrom(float otherLoc, Dim other)
 {
     //	Debug.Log(this + "convertFrom(" + otherLoc.ToString() + "," + other.ToString()+ ")");
     //	Debug.Log("     returning " + (min + diff * other.getPercentage (otherLoc)));
     if (flipConversions)
     {
         return(max - diff * other.getPercentage(otherLoc));
     }
     else
     {
         return(min + diff * other.getPercentage(otherLoc));
     }
 }