Commit Graph

122 Commits

Author SHA1 Message Date
Nathanael Jourdane c9681cec8a Add Anchor.Opposite() func 2020-08-12 17:31:05 +02:00
Nathanael Jourdane 2342984744 bugfix: inverse all anchors 2020-08-12 17:24:29 +02:00
Nathanaël Jourdane 7a106fa572 Makes Anchor a type Vec instead of a struct 2020-08-11 11:33:05 +02:00
Nathanaël e66e94b943 func AlignedTo is used for Rect instead of Matrix 2020-08-11 09:17:51 +02:00
Nathanaël d6663ba0a0 Add Matrix.Aligned() 2020-08-11 08:44:39 +02:00
Nathanaël Jourdane 50e1d8c96b Add Rect.AnchorTo() 2020-08-10 17:25:09 +02:00
Nathanaël Jourdane 2c79e7325a Add AnchorPos struct and functions 2020-08-10 15:57:56 +02:00
Ben Cragg 5254b4eb62 Fixing 0,0 being legit closest point 2020-05-10 14:25:05 +01:00
Michal Štrba e51d4a6676
fix some typos 2019-11-06 00:50:48 +01:00
Michal Štrba 0d44d2cc9b
Revert "Fixed a couple of errors in methods comments" 2019-11-06 00:46:26 +01:00
Michal Štrba 18972c2818
Merge branch 'master' into comments-errors 2019-11-06 00:43:12 +01:00
Tskken 8d0c306de9 typo fix
fixed typo in comments.
2019-11-05 16:32:55 -07:00
Tskken 706becb764 Update adding new Rect.Intersects Method
This addes a new Rect.Intersects method which is around 5x faster then Rect.Intersect when used for basic collision checks.
2019-11-05 16:14:36 -07:00
Sergio Vera f24d465808 Fixed a couple of errors in methods comments 2019-10-24 10:29:11 +02:00
Tsukinai ba6fc7db8a docs changes
changed wording to match zero-vector returns in other functions.
2019-05-24 12:25:35 -06:00
Tsukinai 285676ca17 gofmt and fixed docs
Fixed doc refrince to R(0,0,0,0) in Rect.Intersect() to be a ZR and for it to return a ZR.

Also ran gofmt...
2019-05-24 12:20:00 -06:00
Tsukinai b18647916f Added ZR for zero rect
Added the ZR for rectangle for both utility and consistensy with pixel.ZV
2019-05-24 12:00:11 -06:00
Ben Cragg f698bae1df Added floating point round error correction 2019-04-10 12:47:07 +01:00
Ben Cragg 9eb2834a10 fixed index issue 2019-04-04 16:20:21 +01:00
Ben Cragg 0092d6a577 implementing pre 1.8 sortslice solution 2019-04-04 16:09:25 +01:00
Ben Cragg b8bb00a161 Setting order of returned points on Circle 2019-04-04 15:49:40 +01:00
Ben Cragg 29b1220ec3 Setting order of returned points on Rect 2019-04-04 15:48:27 +01:00
Ben Cragg bcda85acd2 Adding fullstop at end of func comment 2019-04-04 15:13:47 +01:00
Ben Cragg 966150a856 Removing backticks 2019-04-04 15:13:24 +01:00
Ben Cragg f3377bb16f Added circle intersection points 2019-04-04 11:53:48 +01:00
Ben Cragg 4795a92b41 fixed line intersect and added rect intersection points 2019-04-03 16:58:30 +01:00
Ben Cragg 83c62a0313 fixing line intersect function 2019-04-03 16:21:57 +01:00
Ben Cragg c3e69c4f35 Tidying up function comments 2019-04-03 15:26:38 +01:00
Ben Cragg e6392a228d Making len more sensible 2019-04-03 12:22:21 +01:00
Ben Cragg 3592de858c Clarified comment 2019-04-03 12:19:30 +01:00
Ben Cragg a1d36f8c7e Clarified comment 2019-04-03 12:16:27 +01:00
Ben Cragg 98d5b9b417 Adding vertical/horizontal edge cases 2019-04-03 12:12:27 +01:00
Ben Cragg e5ff236d71 Removed debug lines 2019-04-03 12:03:58 +01:00
Ben Cragg e99ac56daa wip line tests 2019-04-03 11:52:42 +01:00
Ben Cragg aa7ef59ecd wip line tests 2019-04-03 11:47:36 +01:00
Ben Cragg eb3d7e0787 wip line tests 2019-04-03 11:09:14 +01:00
Ben Cragg 11e2012ef5 WIP line tests 2019-04-03 08:23:34 +01:00
Ben Cragg 8cd352b7a3 WIP line tests 2019-04-03 08:13:33 +01:00
Ben Cragg 997f23dfb5 WIP line tests 2019-04-02 17:01:18 +01:00
Ben Cragg 04c3ef72a3 WIP line tests 2019-04-02 16:27:54 +01:00
Ben Cragg 9d07d69429 Fixed so corners are provided in anticlockwise pattern 2019-04-01 15:42:20 +01:00
Ben Cragg 128ec4d4c0 Added function to create a Line 2019-04-01 15:37:23 +01:00
Ben Cragg d3912a6486 Added Line struct and methods 2019-04-01 15:31:20 +01:00
Ben Cragg 680d16c17b Corrected returned Vectors for corner overlaps 2019-02-18 12:03:54 +00:00
Ben Cragg cc9f03d393 corrected function preambles 2019-02-14 14:23:50 +00:00
Ben Cragg f21c48599f Made naming consistent 2019-02-14 14:23:50 +00:00
Ben Cragg ab70533793 wip 2019-02-14 14:23:50 +00:00
Ben Cragg 0a0c8ff110 corrected area formula 2019-02-14 14:23:50 +00:00
Ben Cragg 5abf2d29a6 swapped radius and center order 2019-02-14 14:23:50 +00:00
Ben Cragg 4d30a8fe49 fixed intersect function 2019-02-14 14:23:50 +00:00