mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add test to Point.
This commit is contained in:
parent
c0ecc7f85c
commit
4b9a00a65c
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ test('new Point({ width: 10, height: 20})', function() {
|
|||
equals(point.y, 20);
|
||||
});
|
||||
|
||||
test('new Point({ angle: 45, length: 20})', function() {
|
||||
var point = new Point({angle: 40, length: 20});
|
||||
equals(point.toString(), '{ x: 15.32089, y: 12.85575 }');
|
||||
});
|
||||
|
||||
module('Point vector operations');
|
||||
|
||||
test('normalize(length)', function() {
|
||||
|
|
Loading…
Reference in a new issue