Polygon library started.
This commit is contained in:
parent
6392d990f8
commit
952c371218
17
Manticore/Geometry/Polygon.pm
Normal file
17
Manticore/Geometry/Polygon.pm
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
package Manticore::Geometry::Polygon;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
# Data representation:
|
||||||
|
# List of {p=>polygon, v=>value}
|
||||||
|
# Each of these polygons shall be normalized, hence intersection free with itself
|
||||||
|
# Value is summarized if several polygons are around the same point
|
||||||
|
# Polygons are a list of points
|
||||||
|
sub new {
|
||||||
|
my ($pkg, $pts) = @_;
|
||||||
|
return bless $pts;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
1;
|
||||||
Loading…
Reference in New Issue
Block a user