bayaMola
Sets vector components.
bayaMola(mola, boleng)bayaMola(mola, x, y, [z])Accepts another vector, an array, or separate x, y and z values. Replaces the components instead of adding to them. Mutates and returns the first vector, so calls can be nested. Use matching vector dimensions.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
mola | mola | The vector to change. |
boleng | palo / mola / lenaane | A number, vector or array of components. Alternatively pass separate x, y and z components. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(320, 220);
bokamorago(235);
diri boemo = bopaMola(90, 65);
mothaloMmala(150);
thalaMothalo(30, 30, 30 + boemo.x, 30 + boemo.y);
bayaMola(boemo, 140, 40);
mothaloMmala(25, 130, 160);
thalaMothalo(30, 30, 30 + boemo.x, 30 + boemo.y);
emisaPoapoeletso();
}