Commit Graph

15 Commits

Author SHA1 Message Date
d1d4aec900 Added XY method for Point{,F,F32} that returns the coordinates. 2021-08-06 16:08:30 +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
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
45e7d0c8fd Added Max for floating point numbers. 2018-09-24 09:38:32 +02:00
8bcc0dff3f Added RectangleF32.
Added ZeroPtF32.
Added Center methods for rectangles.
2018-08-07 06:56:31 +02:00
386eb28f11 Added Matrix3x3F32 and Vector3F32.
Added shorthand for creating a PointF32.
2018-07-18 20:05:06 +02: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