Commit graph

27 commits

Author SHA1 Message Date
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sapics
cfc5a912da Replace url to avoid redirection
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
Jürg Lehni
97abd80bab Replace all occurences of Math.sqrt(2) with Math.SQRT2 2016-12-29 10:56:06 +01:00
Jürg Lehni
32d8c969fb Clean up handling of #_set(), #set() and #initialize()
Convention:

- #_set() is for actually setting properties, e.g. on Point, Size, so that derived classes can reuse other parts (e.g. SegmentPoint)
- #set() is a shortcut to #initialize() on all basic types, to offer the same amount of flexibility when setting values.
2016-07-18 20:11:01 +02:00
Jürg Lehni
9aa29e0afc Add support for construction from strings to Point and Size. 2016-05-27 11:37:19 +02:00
Jürg Lehni
4c84c3dad5 Tests: Start getting QUnit tests to work on Node.js
Work in progress…
2016-01-31 12:43:20 +01:00
Jürg Lehni
a7a07fb6d5 Update JSDoc and do some documentation spring-cleaning.
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Jürg Lehni
26cdbb6805 Fix typo: #isColinear() -> #isCollinear()
Keeping misspelled version around for a while.
2015-06-16 18:39:52 +02:00
Jürg Lehni
b8674a3bc1 Implement unit test comparators for Point, Size and Rectangle. 2014-12-28 14:59:48 +01:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
78a107da65 Implement unit tests for Point#isOrthogonal() 2014-02-28 17:56:56 +01:00
Jürg Lehni
87d0dc9ead Implement unit tests for Point#isColinear() 2014-02-28 17:54:34 +01:00
Jürg Lehni
e22fa3a664 Update copyright notice. 2014-01-04 01:47:16 +01:00
Jürg Lehni
0d39c4377d Define test for issue #344 2013-12-07 16:30:40 +01:00
Jürg Lehni
a837bbb2f6 Better format Point#getDirectedAngle() tests. 2013-12-07 16:28:07 +01:00
Jürg Lehni
9bcfae8661 Use comparePoints() helper in Point tests. 2013-12-07 16:26:17 +01:00
Jürg Lehni
4b62949318 Fix tests for #246.
This is actually the right behavior: Setting length to negative values should flip around defined vectors.
2013-06-23 17:22:13 -07:00
Jürg Lehni
cf1b5a5df8 Define failing test for #246 2013-06-23 16:55:14 -07:00
Jürg Lehni
3db6e103c2 Implement failing tests for Point#equals().
As needed to fix #235
2013-06-11 19:52:42 -07:00
Jürg Lehni
6c9c16ad3d Update copyright information comments, and year. 2013-01-28 18:03:27 -08:00
Jürg Lehni
79c0ad8cc5 Update copyright notices. 2011-07-01 12:17:45 +02:00
Jürg Lehni
5a601f39a4 Fix tests for Point#getDirectedAngle(point). 2011-06-14 12:44:56 +01:00
Jonathan Puckey
0e297e56ac Point tests: use string comparison where possible. 2011-05-21 21:01:36 +02:00
Jonathan Puckey
4b9a00a65c Add test to Point. 2011-05-21 21:01:01 +02:00
Jürg Lehni
08d4826441 Reformating code to follow Scriptotgrapher coding conventions. 2011-02-13 16:26:24 +00:00
Jonathan Puckey
1a9b80513f Clean up test folder. 2011-02-12 17:49:09 +01:00
Renamed from test/tests_Point.js (Browse further)