Я хотел сделать это, используя длинные строки этого( да 270 - это полная ротация, код немного дурацкий, не судите строго);
Код: Выделить всё
270=(3*longLength*longCount)+(2*mediumLength*mediumCount)+(shortLength*shortCount);
Код: Выделить всё
//def vars
var shortLength;
var mediumLength;
var longLength;
var shortCount=0;
var mediumCount=0;
var longCount=0;
//I have a counting and input function that works, that's all that needs to be said there, assume that the Values of the counts are neither identically valued, nor at 0
if (totalCount>1){
shortLength=((-3*longLength*longCount)+(-2*mediumLength*mediumCount)+270)/shortCount;
} else {
shortLength=270;
mediumLength=270;
longLength=270;
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... hod-relati
Мобильная версия