Commit Graph

13 Commits

Author SHA1 Message Date
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
9b12441b43 Added {Min,Max}Pt{,F,F32}. 2019-12-28 18:26:08 +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
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
bdfa821989 Added point (PointF) subtraction. 2017-11-06 22:14:48 +01:00
fd7d29064c Added zero point 2017-11-06 07:04:21 +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