Skip to content
ExamplesOpen editor ↗

boleeleJwaMola

Reads a vector’s magnitude.

boleeleJwaMola(mola)

Returns the vector’s magnitude as a number, without changing the vector. A vector with components (3, 4) has magnitude 5. This is the geometric length, not the number of components.

NameTypeDescription
molamolaThe vector to measure.
Reads a vector’s magnitude
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri lebelo = bopaMola(3, 4);
  bogoloJwaMokwalo(48);
  thalaMokwalo(boleeleJwaMola(lebelo), 130, 130);
  emisaPoapoeletso();
}

bayaBoleeleJwaMola, thibelaMola, balaLenaane