fix a bug with global rotation

This commit is contained in:
2025-05-31 21:13:06 +02:00
parent 876ae43948
commit 06a3bd26d8
2 changed files with 5 additions and 9 deletions

View File

@@ -115,13 +115,10 @@ impl Polygon {
}
let mut p_g;
for p in self.points_teta.clone() {
p_g = p + self.global_teta;
p_g = (p + self.global_teta) % (2.0 * PI);
if before <= p_g && p_g <= after {
return true;
}
if p_g > after {
return false;
};
}
false
}