Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Polygone is export {
- has @.coordonnees ;
- method new (**@points where all (@points>>.elems) == 2) {
- my @coordonnees;
- for @points -> ($x is raw , $y is raw) {
- @coordonnees.push(Point.new($x,$y));
- }
- self.bless(:@coordonnees);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment