normalize method
Implementation
void normalize(double thickness) {
double l = length();
x = x / l * thickness;
y = y / l * thickness;
}
void normalize(double thickness) {
double l = length();
x = x / l * thickness;
y = y / l * thickness;
}