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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
mola | mola | The first vector. |
karodi | palo / mola / lenaane | A positive divisor or component divisors. |
Examples
Section titled “Examples”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();
}