Commit Graph

35 Commits

Author SHA1 Message Date
cc2addf7e2 Added RectRel{,F,F32} methods.
- Instead of a second coordinate (x,y) you can provide the width & height of the rectangle.
2020-05-15 10:24:09 +02:00
cc72cd1171 Added comment with the range of the noise functions. 2020-05-15 10:20:54 +02:00
52494022f6 Added Pow{,32}. 2020-05-09 08:03:44 +02:00
a77de45eba Added perlin noise generator. 2020-05-08 17:23:30 +02:00
85bee43640 Added Atan{,32}, Cos{,32}, Sin{,32}, Tan{,32}. 2019-12-29 15:45:50 +01:00
9b12441b43 Added {Min,Max}Pt{,F,F32}. 2019-12-28 18:26:08 +01:00
ac8c2029e4 Defined Rectangle in package.
- Instead of deriving from image.Rectangle.
Added methods on Rectangle.
2019-12-27 21:17:06 +01:00
f2705fcdf8 Added Add2D methods for PointF{,32}.
- Add2D adds x, y values instead of a point (Add).
2019-12-24 10:48:49 +01:00
3eeedf121e Added Div and Mul operations for points.
Moved Less method (for Point) to sort alphabetically.
2019-12-23 15:09:33 +01:00
4df2655b53 Added point conversion methods (from integer to float). 2019-12-23 13:53:10 +01:00
65e3a80e84 Added primes package. 2019-12-21 13:44:19 +01:00
73c6048f09 Added more methods to the ints package.
- Added some statistical (related to summing and countings digits) and math methods (related to powers and square roots).
2019-12-21 13:01:47 +01:00
f6bf5ba60d Added helper methods for big ints. 2019-12-21 12:53:57 +01:00
39cef02092 Added statistical method to ints package. 2019-12-21 12:49:14 +01:00
fc18ea9ce8 Moved integer related methods to separate package. 2019-12-21 12:48:57 +01:00
40abdf0439 Point is now its own struct.
- Removed dependency on image package.
Added more methods to manipulate point.
2019-12-21 11:42:01 +01:00
3d416ec281 Added methods to manipulate ints.
- Conversions and basic math.
2019-12-21 11:41:27 +01:00
1f581dfb43 Fixed some comments in math.go. 2019-12-21 11:40:50 +01:00
7fd85808a3 Add Round methods. 2019-07-22 19:44:00 +02:00
a024db06c0 Added DistanceTo{Line,Lines,Polygon} methods for PointF and PointF32.
Added Sq{,rt}{,32} methods.
2019-04-11 19:14:50 +02:00
afb30dc1e6 Added Sub on RectangleF{,32}.
Added Invert on PointF{,32}.
Changed formula of Center (PointF{,32}).
2019-03-06 19:24:03 +01:00
2202b4d1a8 Sorted methods in alphabetical order. 2019-03-06 19:06:08 +01:00
8ad3ad6a18 Added PointF32 implementation of some methods. 2018-11-14 10:27:03 +01:00
dd6d42a60a Added Abs{,32}. 2018-11-14 10:15:53 +01:00
45e7d0c8fd Added Max for floating point numbers. 2018-09-24 09:38:32 +02:00
060dd4380c Added {Is,}NaN{,32} methods. 2018-09-22 18:22:40 +02:00
8bcc0dff3f Added RectangleF32.
Added ZeroPtF32.
Added Center methods for rectangles.
2018-08-07 06:56:31 +02:00
ca6e592cec Added linear algebra package. 2018-07-18 20:05:34 +02:00
386eb28f11 Added Matrix3x3F32 and Vector3F32.
Added shorthand for creating a PointF32.
2018-07-18 20:05:06 +02:00
bdfa821989 Added point (PointF) subtraction. 2017-11-06 22:14:48 +01:00
20f0bf7b1f Added Inset and Add method to RectangleF 2017-11-06 20:24:19 +01:00
fd7d29064c Added zero point 2017-11-06 07:04:21 +01:00
cac351f290 Added methods to calculate width & height for RectangleF. 2017-11-01 11:24:33 +01:00
e181615d9e Fixup readme. 2017-11-01 08:01:53 +01:00
26bac636bc Initial version of the geom package
- Includes PointF, RectangleF and PolygonF. Additional it includes the 32 bit floating point PointF32 and wrappers to image.Point and image.Rectangle.
2017-11-01 06:51:41 +01:00