DEGREES
→ DEGREESA value that makes turning be measured in degrees (°) — 360 in a full circle.
DEGREESDEGREES is one of the two names for an angle unit; the other is RADIANS. Both names are left in English because they are unit names used the world over, just like PI.
You hand it to seeloSaSekhutlo so that angle numbers are read as degrees. From then on a full turn is 90, 180, 360 — the numbers you already know.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
boketeMothalo(3);
// Go tloga fano, dipalo tsotlhe tsa dikhutlo ke dikirii
seeloSaSekhutlo(DEGREES);
gopheta (diri sekhutlo = 0; sekhutlo <= 180; sekhutlo = sekhutlo + 15) {
mothaloMmala(lekanyetsa(sekhutlo, 0, 180, 70, 240), 140, 200);
thalaMothalo(200, 320, 200 + cos(sekhutlo) * 160, 320 - sin(sekhutlo) * 160);
}
// Kotara ya go dikologa ke 90 ka dikirii
kwala(seeloSaSekhutlo());
kwala(sin(90));
}