module special.geometry_polygone
¶
Classes¶
class |
truncated documentation |
---|---|
A sequence of point, the last one is connected to the first one. |
Methods¶
method |
truncated documentation |
---|---|
we assume the polygone is convex and the result of function convex (points sorted by angle we check then if a point … |
Documentation¶
defines a polyline
-
class
ensae_teaching_cs.special.geometry_polygone.
GeometryPolygone
(iterable=(), /)¶ Bases :
list
A sequence of point, the last one is connected to the first one.
-
barycentre
()¶ - Renvoie
the barycentre
-
circle
()¶ - Renvoie
a list of points ordered by angle taken to the barycenter (works only dimension 2)
-
convex
()¶ - Renvoie
the convex envelop
only in 2 dimensions right now
-
in_convex
(p)¶ we assume the polygone is convex and the result of function convex (points sorted by angle we check then if a point p belongs to the envelop (only 2-dimension)
- Paramètres
p – point
- Renvoie
boolean
-