229 Commits

Author SHA1 Message Date
Claridtimo d556d31ff7 build: target Java 8 instead of 7
JDK 20+ removed -source/-target 7, so the module no longer compiled on
modern JDKs. Bump source.level to 8 (lowest still supported).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 11:39:45 +12:00
Michael Bayne b8fea743ee Fix Line.isEmpty().
Closes #27.
2017-11-16 10:57:59 -08:00
Michael Bayne 3e2002ead7 Don't try to test gh-pages branch. 2017-06-04 09:16:45 -07:00
Michael Bayne 0a0a4ecdd0 Update version to 1.4.3. 2017-06-04 09:14:24 -07:00
Michael Bayne 16bed1e75a [maven-release-plugin] prepare for next development iteration 2017-06-04 09:08:57 -07:00
Michael Bayne a0a2a32ea1 [maven-release-plugin] prepare release pythagoras-1.4.3 2017-06-04 09:08:49 -07:00
Michael Bayne e3d3618ebf Move prereqs down. 2015-11-15 07:27:38 -08:00
Michael Bayne c7ae29ec0c Better toString() for AffineTransform.
If it's just a translation transform, only show the translation, and if it's an
identity transform, just say 'ident'.
2015-11-15 07:27:02 -08:00
Michael Bayne 39ff9717dc Drop JDK6, add JDK8, other Travis hygiene. 2015-10-05 14:53:49 -07:00
Michael Bayne 18e16dc048 Add Sonatype plugin for easier releases. 2015-10-05 14:48:55 -07:00
Michael Bayne c65805fea0 A bunch of POM up-to-dating. 2015-10-05 14:48:06 -07:00
Michael Bayne c8dd15647d Accept XY in constructor as well. 2015-09-17 12:24:00 -07:00
Michael Bayne 0447064ea9 Allow a Vector to be set from any XY.
I'm tempted to make add/subtract/scale take XY as well, but I'm not sure I love
that. Part of the point (pardon the pun) of having Point and Vector is to use
the types to prevent one from performing nonsensical operations. For example,
you lerp between two vectors, lerping between a Vector and a Point would be
weird; sloppy at best, most likely wrong. Adding/subtracting a point to/from a
vector feels like it's in the wrong category as well, so perhaps it's best to
continue to prevent that via the type system.

If you really have a Point (or some other XY) that represents a vector, then I
guess I'm fine with forcing you to either put it into a Vector to get the
convenient math, or to pull out its x/y components manually. Then again, that
also feels overly paternal. Blah.
2015-05-30 10:38:28 -07:00
Michael Bayne 70b83fd521 Added IPoint.add(XY,Point).
We already had such a method for subtract(). Not sure how I managed to miss
add.
2015-05-30 10:32:57 -07:00
Michael Bayne 1ec8b53770 [maven-release-plugin] prepare for next development iteration 2015-03-10 09:13:35 -07:00
Michael Bayne 8df64ddf3d [maven-release-plugin] prepare release pythagoras-1.4.2 2015-03-10 09:13:32 -07:00
Michael Bayne b0e7dbbf47 Missed a spot. 2015-02-04 11:37:04 -08:00
Michael Bayne 32516ec816 Fixed indent of double version as well. 2015-02-04 11:30:35 -08:00
Michael Bayne 727861c254 Fixed indentation.
Having these serialVersionUID fields screws up my script which converts the
float code to double code. Meh. I guess I can improve it so that it preserves
the double versions... yaks!
2015-02-04 11:28:15 -08:00
Michael Bayne 7fb1d3cccf Merge pull request #26 from tomfisher/master
Fix the wrong path calculation of Arc with small angle
2015-02-04 11:25:59 -08:00
tomfisher 85f702c93f Clean up the serialVersionUID warning 2015-02-04 16:25:33 +08:00
tomfisher bcba265386 Fix the wrong path calculation of Arc with small angle 2015-02-04 16:11:57 +08:00
Michael Bayne bfb6709b1b Bump to 1.4.1. 2015-01-20 10:28:49 -08:00
Michael Bayne e58835e0f3 [maven-release-plugin] prepare for next development iteration 2015-01-20 10:27:07 -08:00
Michael Bayne 3b12a6aa25 [maven-release-plugin] prepare release pythagoras-1.4.1 2015-01-20 10:27:02 -08:00
Michael Bayne 72a35225d2 Take XY wherever we took IPoint.
Be lenient in what you accept, strict in what you produce.
2015-01-15 13:51:49 -08:00
Michael Bayne ce42c01f45 Move GWT source out of src/main/java.
Also updated maven-compiler-plugin to newer less crack-smokey version.
2015-01-15 13:50:37 -08:00
Michael Bayne f513fc2acc [maven-release-plugin] prepare for next development iteration 2015-01-10 15:07:38 -08:00
Michael Bayne 4b6229531c [maven-release-plugin] prepare release pythagoras-1.4 2015-01-10 15:07:35 -08:00
Michael Bayne 9d65e17cbe Reference forthcoming 1.4 release. 2015-01-10 15:06:25 -08:00
Michael Bayne fe48dd6440 Javadoc fixes. 2015-01-10 15:05:13 -08:00
Michael Bayne b6821cd96b Suppress missing @param, @return doclint warnings. 2015-01-10 15:03:19 -08:00
Michael Bayne 7879c12749 Added set(AffineTransform). More return type refinement. 2014-12-30 15:58:00 -08:00
Michael Bayne 524ce3c82c Specialize return types on copy. 2014-12-30 10:47:16 -08:00
Michael Bayne fd4e34fb26 Merge pull request #25 from deadmoose/semicolons
Spurious semicolons
2014-04-04 07:15:08 -07:00
David Hoover 2cbe19a4a2 Spurious semicolons 2014-03-18 10:05:55 -07:00
Michael Bayne 3c1a50441a Use new SBT bits. 2014-01-29 15:10:59 -08:00
Michael Bayne a46ea711f0 Handle NaN in toString(). 2013-07-26 11:07:02 -07:00
Michael Bayne 0ff90d641e A bunch of add/substract to syncmake i.Point with f/d.Point.
Closes #24.
2013-05-24 06:10:35 -07:00
Michael Bayne d97a7a20b1 Use JDKs 6 and 7. 2013-05-22 21:15:36 -07:00
Michael Bayne 951f987839 Let's try Travis! 2013-05-22 16:48:54 -07:00
Michael Bayne b05258d39e Added test for (now fixed) Area bug. 2013-03-06 11:20:15 -08:00
Michael Bayne 7edef042c0 Added semi-useful toStrings. 2013-03-06 11:20:14 -08:00
Michael Bayne 25b09788e3 Fixed issues with auto-closing paths. 2013-03-06 11:20:12 -08:00
Michael Bayne 73fc54dff0 Switch to _ member names for easer code grokking. 2013-03-06 10:35:56 -08:00
Michael Bayne fc4cf07ca3 Nixed mirrorAngleOrigin because it's not correct.
The correct way to mirror an angle in [-PI, PI] around the x-axis is simply to
negate it, which doesn't seem ceremonious enough to require a utility method.
2013-02-12 17:27:23 -08:00
Michael Bayne 0a388b65aa Catch the double implementations up with the float. 2013-02-12 17:13:47 -08:00
Michael Bayne 05756aae38 We need Scala for test classes. 2013-02-12 14:25:37 -08:00
Michael Bayne fef73ea027 Save an extra call to mirrorAngle when d == md. 2013-02-12 14:25:20 -08:00
Michael Bayne f26a72c26f Change new mirrorAngle to mirrorAngleOrigin, improved javadocs.
The old mirrorAngle mirrors around the "y-axis" (PI/2 or -PI/2 as appropriate)
which is necessary for other code (particularly angularDifference) to work
correctly. The new mirrorAngleOrigin mirrors around the "x-axis" (zero).
2013-02-12 14:24:04 -08:00