fix a bug with global rotation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user