fix a bug with global rotation

This commit is contained in:
2025-05-31 21:13:06 +02:00
parent b6177c4af8
commit 051d4b66e5
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
}