boleeleJwaMola
Reads a vector’s magnitude.
boleeleJwaMola(mola)Returns the vector’s magnitude as a number, without changing the vector. A vector with components (3, 4) has magnitude 5. This is the geometric length, not the number of components.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
mola | mola | The vector to measure. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(320, 220);
bokamorago(235);
diri lebelo = bopaMola(3, 4);
bogoloJwaMokwalo(48);
thalaMokwalo(boleeleJwaMola(lebelo), 130, 130);
emisaPoapoeletso();
}