Skip to content
ExamplesOpen editor ↗

sekgalaSaMela

Measures distance between vector positions.

sekgalaSaMela(mola, oMongwe)

Treats vectors as point positions and returns the distance between them. Neither input changes. Use matching dimensions.

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

bopaMola, kopololaMola