Skip to content
ExamplesOpen editor ↗

seatisoSaSefapaano

Creates the cross product of vectors.

seatisoSaSefapaano(mola, oMongwe)

Returns a new vector perpendicular to both inputs using the right-hand rule. Neither input changes. For vectors in the x-y plane, the result lies on the z-axis.

NameTypeDescription
molamolaThe first vector.
oMongwemolaThe second vector.
Creates the cross product of vectors
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  diri a = bopaMola(3, 4);
  diri b = bopaMola(5, 1);
  diri sephetho = seatisoSaSefapaano(a, b);
  bogoloJwaMokwalo(36);
  thalaMokwalo(sephetho.z, 100, 120);
  emisaPoapoeletso();
}

bopaMola, kopololaMola