MCPcopy
hub / github.com/paperjs/paper.js / testPoint

Function testPoint

test/tests/PathItem_Contains.js:15–18  ·  view source on GitHub ↗
(item, point, inside, message)

Source from the content-addressed store, hash-verified

13QUnit.module('PathItem Contains');
14
15function testPoint(item, point, inside, message) {
16 equals(item.contains(point), inside, message || ('The point ' + point
17 + ' should be ' + (inside ? 'inside' : 'outside') + '.'));
18}
19
20test('Path#contains() (regular polygon: #208)', function() {
21 var path = new Path.RegularPolygon([0, 0], 6, 20);

Callers 2

testDonutFunction · 0.85

Calls 1

equalsFunction · 0.85

Tested by

no test coverage detected