Skip to content
ExamplesOpen editor ↗

sesalaSaMola

Replaces components with division remainders.

sesalaSaMola(mola, karodi)

Mutates and returns the vector. Accepts one scalar divisor, a vector, array or separate divisors. Use positive divisors; nonpositive divisors leave the affected components unchanged. Remainders keep the sign of the original component.

NameTypeDescription
molamolaThe first vector.
karodipalo / mola / lenaaneA positive divisor or component divisors.
Replaces components with division remainders
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = bopaMola(3, 4);
  diri b = bopaMola(5, 1);
  diri sephetho = sesalaSaMola(a, 4);
  atisaMola(sephetho, 20);
  thalaMothalo(90, 60, 90 + sephetho.x, 60 + sephetho.y);
  emisaPoapoeletso();
}

bopaMola, kopololaMola