135 Commits

Author SHA1 Message Date
Alban Cabannes-Michel
854337a0df Add operator * overload for Triangle * Matrix3 2025-09-02 19:24:00 +02:00
Salman Ahmed
2be944a937 Merge branch 'master' into larger-texture-atlas 2023-04-08 09:43:54 +03:00
Bartłomiej Dach
7724775b7f Fix Quad.Contains() not working with clockwise-oriented quads 2023-03-30 00:44:13 +02:00
Bartłomiej Dach
254b3d0ac5 Fix Quad.Contains() failing for zero-sized drawables 2023-03-15 11:46:24 +01:00
Bartłomiej Dach
7243b9e2d5 Add remark about quad convexity 2023-03-08 00:54:05 +01:00
Bartłomiej Dach
92a8a6217e Use alternative method in Quad.Contains() 2023-03-08 00:47:54 +01:00
Thomas Müller-Höhne
84fdc7372d Fix off-by-one error in RectangleI.IntersectsWith 2022-12-16 08:35:29 +01:00
Dean Herbert
63405204eb Apply NRT to all low-hanging fruit 2022-11-16 19:12:44 +09:00
Dan Balasescu
ba1385330c Automated #nullable processing 2022-06-13 21:57:05 +09:00
Dan Balasescu
8a3996167a Add test 2022-06-01 21:05:57 +09:00
Dean Herbert
66011b7daf Use auto properties to avoid naming issues 2022-04-25 16:42:56 +09:00
Huo Yaoyuan
704771b31f Revert naming style change and supress in code 2022-04-22 17:06:07 +08:00
Huo Yaoyuan
591b4e06dc Enforce more stylish rules and fix IDE0049 2022-04-22 17:06:06 +08:00
Huo Yaoyuan
db8ce0871b Fix IDE0001 in xml doc 2022-04-22 17:06:06 +08:00
ekrctb
dde9eb08ed Apply "use explict type (built-in types)" inspection fix 2021-10-27 20:51:35 +09:00
ekrctb
f5639b9ed1 Add RectangleF.Normalize 2021-06-09 21:34:24 +09:00
Poliwrath
28db1992fc Fix typos in various comments 2020-09-05 00:33:31 -04:00
smoogipoo
fe78541269 Add more/improve comments 2020-05-07 16:17:06 +09:00
Thomas Müller
d5e49a690a Fix bad naming of locals 2020-05-03 21:15:51 +02:00
Thomas Müller
cd04913fff Fix filtering issues of TextureAtlas+MipMapping 2020-05-03 09:54:06 +02:00
Thomas Müller
989afd6b30 Finish implementation of texture wrap modes and texture positioning within sprites 2020-05-01 15:04:16 +02:00
Berkan Diler
9f9ef2b1d0 Merge branch 'master' of https://github.com/ppy/osu-framework into numeric_extensions 2020-01-08 14:54:20 +01:00
Berkan Diler
6d653ddae3 Rename namespace from MathUtils to Utils 2020-01-08 14:25:15 +01:00
Huo Yaoyuan
c66370d5ac Fix inspections. 2019-12-16 15:10:14 +08:00
Huo Yaoyuan
bd6a772fec Make Quad and Triangle fully readonly. 2019-12-16 13:09:27 +08:00
Huo Yaoyuan
05ce77a53f Add readonly modifier on struct methods. 2019-12-16 12:41:06 +08:00
Huo Yaoyuan
57d184dc21 Merge branch 'master' into fxcop 2019-11-26 17:39:01 +08:00
Berkan Diler
d4d9383036 Use Math.PI instead of MathHelper.PI and replace (float)Math-casts with MathF 2019-11-21 22:46:40 +01:00
Huo Yaoyuan
18b7c99bde Resolve newly caught CA1200. 2019-11-19 18:18:13 +08:00
Thomas Müller
83e702424d Fix formatting 2019-11-16 09:27:57 +09:00
Thomas Müller
869a0d2632 Implement apple's "continuous curves" 2019-11-14 09:53:29 +09:00
Huo Yaoyuan
43432f7c21 Use pattern matching for type check. 2019-11-04 17:12:13 +08:00
Huo Yaoyuan
621bdcbea7 Fix xml doc for rectangles. 2019-10-23 23:26:10 +08:00
Jacob
983749945b Implement IConvexPolygon and IEquatable<Triangle> for Triangle 2019-10-20 16:14:52 +02:00
Jacob
21b9224021 Fix formatting and remove unnecessary usings 2019-10-20 15:34:55 +02:00
Jacob
03c18b3063 Rework Triangle.Area 2019-10-18 19:19:18 +02:00
smoogipoo
3b92468c00 Replace Area with the new function 2019-09-19 13:01:11 +09:00
smoogipoo
31c17de401 Add self-intersecting quad test + improve xmldocs 2019-09-19 12:39:34 +09:00
smoogipoo
c3238ca0c2 Fix shearing making Quad.ConservativeArea inaccurate 2019-09-18 20:17:29 +09:00
smoogipoo
345fb93d38 Make GetVertices()/GetAxisVerties() specify vertices in counter-clockwise orientation 2019-06-01 14:27:36 +09:00
smoogipoo
6049386584 Add optimised paths for line intersections 2019-05-27 21:19:47 +09:00
smoogipoo
f6f0181c0e Speed up algorithm by using more intrinsics 2019-05-24 18:51:26 +09:00
smoogipoo
cd4e5ee6fb Implement polygon clipping 2019-04-07 18:31:01 +09:00
smoogipoo
476a6c4a77 Merge branch 'line-intersections' into polygon-clipping 2019-04-07 02:04:43 +09:00
smoogipoo
2e2aff73ed Further commenting improvements 2019-04-07 01:40:55 +09:00
smoogipoo
2e0532aeb7 Remove extra paragraph 2019-04-07 01:29:13 +09:00
smoogipoo
792cc8b086 Enforce ordering + safety 2019-04-07 01:12:01 +09:00
smoogipoo
331fd125ac Optimise polygon intersections 2019-04-07 01:12:01 +09:00
smoogipoo
81fd4b42d6 Add test cases 2019-04-04 19:52:12 +09:00
smoogipoo
cf2a2bd8ef Fix incorrect order 2019-04-04 19:51:50 +09:00