Skip to content

KOTARA_PI

A constant equal to a quarter of PI, approximately 0.7854.

KOTARA_PI is PI / 4. It is an eighth of a full turn (45˚). Four helpings of KOTARA_PI add up to PI.

KOTARA_PI
Four quarters add up to PI
tiro setaLoeto() {
  thalaKanefase(400, 400);
  bokamorago(220);
  boketeMothalo(14);
  mothaloMmala(70, 130, 180);

  gopheta (diri i = 0; i < 4; i = i + 1) {
    diri simolo = 45 + i * KOTARA_PI * 100;
    thalaMothalo(simolo, 200, simolo + KOTARA_PI * 100 - 10, 200);
  }
}

PI, SEPHATLO_PI, PEDI_PI, TAU