#include <Coordinates.h>
Coordinates point = Coordinates();
void setup() {
Serial.begin(9600);
float r = 1.41;
float phi = 3.14159 / 4; // angle = pi / 4 radians
Serial.print("r: ");
Serial.println(r);
Serial.print("φ: ");
Serial.println(phi);
Serial.println(" rad");
point.fromPolar(r, phi);
Serial.print("x: ");
Serial.println(point.getX());
Serial.print("y: ");
Serial.print(point.getY());
}
void loop() {}