Exploit known sense of rings to simplify area calculation

This commit is contained in:
Tom Payne
2013-12-02 12:15:07 +01:00
parent 8852e3198c
commit 01c185ef57
2 changed files with 4 additions and 10 deletions

View File

@@ -163,7 +163,7 @@ describe('ol.geom.flat', function() {
it('calculates the area with holes', function() {
var area = ol.geom.flat.linearRingsArea(
[0, 0, 0, 3, 3, 3, 3, 0, 1, 1, 1, 2, 2, 2, 2, 1], 0, [8, 16], 2);
[0, 0, 0, 3, 3, 3, 3, 0, 1, 1, 2, 1, 2, 2, 1, 2], 0, [8, 16], 2);
expect(area).to.be(8);
});