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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
mola | mola | The first vector. |
oMongwe | mola | The second vector. |
Examples
Section titled “Examples”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();
}