Skip to content
ExamplesOpen editor ↗

sekhutloSaMola

Reads a vector’s heading.

sekhutloSaMola(mola)

Returns the angle from the positive x-axis in the x-y plane, without changing the vector. A vector from bopaMola follows seeloSaSekhutlo; vectors from molaWaSekhutlo and molaOpe use radians.

NameTypeDescription
molamolaThe first vector.
Reads a vector’s heading
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = bopaMola(3, 4);
  diri b = bopaMola(5, 1);
  diri sephetho = sekhutloSaMola(a);
  bogoloJwaMokwalo(28);
  thalaMokwalo(mokwalo(sephetho), 40, 120);
  emisaPoapoeletso();
}

bopaMola, kopololaMola