Commit Graph

49 Commits

Author SHA1 Message Date
e01aa3242d Added TriangleF.
Renamed Add to Extend on PolygonF{,32}.
Add now translates a polygon.
2021-08-09 01:37:16 +02:00
88ed955ce4 Added Atan2, Len, Norm for PointF{,32}.
Added Dot for Point{,F,F32}
2021-08-09 01:35:30 +02:00
701ba39cdc Added Atan2{,32}. 2021-08-09 01:33:48 +02:00
a7a4688687 Add Mul2D to Point{,F,F32}. 2021-08-06 19:11:58 +02:00
e34821ab87 Exposed Pi. 2021-08-06 19:09:26 +02:00
d1d4aec900 Added XY method for Point{,F,F32} that returns the coordinates. 2021-08-06 16:08:30 +02:00
885f27689f Added Union for Rectangle{,F,F32}. 2021-02-15 19:39:39 +01:00
d1c3f6619b Added Len{,64} gives back the number of digits of a number. 2021-02-12 13:25:14 +01:00
29de09a237 Added NthRoot{,64} methods. 2021-02-12 09:43:10 +01:00
9215311802 Added two missing int64 methods (Abs64 and SubAbs64). 2020-06-07 08:44:34 +02:00
82f27a2b4a Added Rect{,2D,Rel,Rel2D} methods on Point{,F,F32} to create a rectangle with the point as minimum. 2020-05-17 11:27:12 +02:00
c81df8279f Added all missing conversion functions from the different point & rectangle formats.
Renamed To{32,64} to To{F32,F} for consistency.
2020-05-17 10:38:01 +02:00
18bac571b8 Added PointF{,32}.ToInt that converts the point to a Point.
Added Point.In(Rectangle).
2020-05-16 19:52:05 +02:00
17af2eb843 Add Ceil{,32} and Floor{,32}. 2020-05-15 23:39:15 +02:00
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