Skip to content
ExamplesOpen editor ↗

ntshaMoMoleng

Subtracts components from a vector.

ntshaMoMoleng(mola, boleng)
ntshaMoMoleng(mola, x, y, [z])

Accepts another vector, an array of components, or separate x, y and z numbers. A single number subtracts from x only. Mutates and returns the first vector, so calls can be nested. Use matching vector dimensions.

NameTypeDescription
molamolaThe vector to change.
bolengpalo / mola / lenaaneA number, vector or array of components. Alternatively pass separate x, y and z components.
Subtracts components from a vector
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri boemo = bopaMola(90, 65);
  mothaloMmala(150);
  thalaMothalo(30, 30, 30 + boemo.x, 30 + boemo.y);
  ntshaMoMoleng(boemo, 35, 20);
  mothaloMmala(25, 130, 160);
  thalaMothalo(30, 30, 30 + boemo.x, 30 + boemo.y);
  emisaPoapoeletso();
}

bopaMola, pharologanyoYaMela