Skip to content
ExamplesOpen editor ↗

sekhutloMagarengMela

Measures the angle between vectors.

sekhutloMagarengMela(mola, oMongwe)

Returns the signed angle between vectors, without changing them. A zero-length input returns NaN. A vector from bopaMola follows seeloSaSekhutlo; vectors from molaWaSekhutlo and molaOpe use radians.

NameTypeDescription
molamolaThe first vector.
oMongwemolaThe second vector.
Measures the angle between vectors
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = bopaMola(3, 4);
  diri b = bopaMola(5, 1);
  diri sephetho = sekhutloMagarengMela(a, b);
  bogoloJwaMokwalo(28);
  thalaMokwalo(mokwalo(sephetho), 40, 120);
  emisaPoapoeletso();
}

bopaMola, kopololaMola