Commit Graph

19 Commits

Author SHA1 Message Date
sk89q
9feafcfc30 Convert newer API from radians to degrees. 2014-07-15 20:10:14 -07:00
sk89q
e0fd804f70 Standardized file headers. 2014-04-04 15:23:11 -07:00
TomyLobo
4c496bfaac Added constants to Vector2D, BlockVector and BlockVector2D and made the ones in Vector final. 2013-08-06 11:50:38 -04:00
TomyLobo
610fa40e2a Removed some javadocs for nonexistant parameters in Vector2D methods. 2013-07-02 07:29:58 -04:00
aumgn
0346228310 Add positive() to Vector and Vector2D 2012-03-15 08:29:27 +01:00
TomyLobo
8aa65fd7f4 License block changes
Added some missing license blocks
Added "and contributors" to all copyright notices.
Added $Id$ to files that were still missing it.
Changed "All rights reserved" to GPLv3 on Injector.java.
2012-01-20 08:24:32 +01:00
TomyLobo
4890c1ef9c Optimized Vector[2D].containedWithin and Vector.equals slightly. 2012-01-08 16:30:43 +01:00
TomyLobo
12dbcf6bbc Added Vector2D.isCollinearWith(Vector2D other).
Also added a test for it.
2012-01-05 22:13:21 +01:00
TomyLobo
e4d3f70594 Vector changes.
- Clarified some javadocs
- Optimized toBlockPoint and made it return a BlockVector instead of a Vector.
- Changed some whitespace
2012-01-05 16:08:53 +01:00
TomyLobo
8c68cdf4a8 Fixed Vector[2D].transform2D not using the aboutX/Z arguments properly. 2012-01-05 15:57:54 +01:00
TomyLobo
eafde8cc49 Added Vector2D.toVector(double y). 2012-01-03 14:26:43 +01:00
TomyLobo
c099ae5eb5 Added floor, ceil and round to Vector and Vector2D. 2012-01-03 03:54:01 +01:00
TomyLobo
978d499282 Added various methods to Vector2D.
- Several overloads of add, subtract, multiply and divide
- length, lengthSq, distance, distanceSq, normalize, dot, containedWithin, containedWithinBlock and transform2D
- static methods getMinimum and getMaximum
2012-01-03 01:13:10 +01:00
TomyLobo
4500f93a1b Fixed Vector.containedWithinBlock(min, max) and Vector2D.equals(Vector2D) 2012-01-03 00:58:00 +01:00
TomyLobo
f11415f451 Added Vector.toVector2D and Vector2D.toVector. 2012-01-03 00:41:25 +01:00
TomyLobo
7e13b60a51 Cleanup 2011-11-23 04:48:40 +01:00
Wizjany
f90e47da9a Removed trailing whitespaces. 2011-09-24 15:32:03 -04:00
Wizjany
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04:00
sk89q
582b98dad0 More file moving. 2011-05-01 01:30:33 -07:00