Commit Graph

42 Commits

Author SHA1 Message Date
Oliver Booth 4dd31ec1b6
[ci skip] style: reformat & cleanup solution 2023-03-29 17:46:56 +01:00
Oliver Booth a09492d418
perf: use UnsafeUtility for Unity<->System conversions 2023-03-29 00:14:49 +01:00
Oliver Booth a685d6ec39
Merge branch 'develop' into main 2023-03-07 17:30:15 +00:00
RealityProgrammer e1a7ac03c6 Added SpanExtensions and the reinterpret between Unity's structs to System.Numerics structs 2023-03-06 06:49:07 +07:00
Oliver Booth ea51adc632
Cache Singleton<T> instance on Awake 2022-12-31 14:49:32 +00:00
Oliver Booth dcbe591d66
[X10D.Unity] Add various yield instructions 2022-07-14 12:00:55 +01:00
Oliver Booth 3a5b017a72
Add Color.Deconstruct 2022-07-13 14:35:56 +01:00
Oliver Booth c0395feba3
Add GetClosestConsoleColor (#66) 2022-07-13 14:18:12 +01:00
Oliver Booth 46bfa17b93
Add vector and point component rounding (#65) 2022-07-13 12:09:37 +01:00
Oliver Booth 7231c41466
[ci skip] Fix source validation errors 2022-07-08 13:08:24 +01:00
Oliver Booth 02cc897426
Add Point.IsOnLine (#64) 2022-06-29 17:55:04 +01:00
Oliver Booth 519673d7ce
Rename sides parameter to segments 2022-06-03 12:11:34 +01:00
Oliver Booth a4b6033b94
Fix langword cref in xmldoc 2022-06-03 12:10:43 +01:00
Oliver Booth 5be42fea5a
Remove DebugEx partials into subfolder 2022-06-03 10:37:03 +01:00
Oliver Booth e9e081b220
Add Bounds overload to DebugEx.DrawWireCube 2022-06-02 12:18:03 +01:00
Oliver Booth a8d3ac96ca
Fix wording in xmldoc for DebugEx.DrawWireCube 2022-06-02 12:17:47 +01:00
Oliver Booth 75b79589e8
Remove Box2D struct, use built in Rect(angle/F) 2022-06-02 12:15:04 +01:00
Oliver Booth 96170eac6f
Remove Box struct, use custom Cuboid, rename Box to WireCube 2022-06-02 12:14:16 +01:00
Oliver Booth 32485b727a
Add DebugEx class 2022-06-01 19:00:36 +01:00
Oliver Booth eaa88ce11a
Add Polygon/Polyhedron extension methods for Unity vector types 2022-06-01 18:38:14 +01:00
Oliver Booth 43a155ad90
Add Vector2/3Int.ToSystemVector 2022-06-01 18:37:33 +01:00
Oliver Booth b0cce087b3
Add additional ctor overloads for Ellipse/F 2022-06-01 17:05:25 +01:00
Oliver Booth 74af813d78
Add RectInt conversions 2022-06-01 11:06:24 +01:00
Oliver Booth 5d63560146
Marked Singleton<T> obsolete
This pattern is discouraged.

... I regret adding it.
2022-05-31 11:52:59 +01:00
Oliver Booth 28dd88cf0a
Add Vector2/3Int method parity
* Added Vector2/3Int.Deconstruct
* Added Vector2/3Int.WithX
* Added Vector2/3Int.WithY
* Added Vector3Int.WithZ
* Added Vector2Int.ToSystemPoint
* Added Vector2Int.ToSystemSize
2022-05-31 11:41:29 +01:00
Oliver Booth f35f398d7f
Add conversions between Size(F)/Point(F)/Vector and Rect/Rectangle(F) 2022-05-28 14:19:46 +01:00
Oliver Booth 5aea71465a
Add UnityEngine/System.Drawing color conversions 2022-05-16 10:41:53 +01:00
Oliver Booth d312d05f7a
Add vector tuple deconstruction 2022-05-16 10:30:55 +01:00
Oliver Booth 048e0a22f7
Add Singleton<T> class 2022-05-13 09:09:25 +01:00
Oliver Booth 1428618ca9
Add System.Numerics/UnityEngine vector/quaternion conversions 2022-05-09 20:40:55 +01:00
Oliver Booth d17e1670de
Remove call to Cast, avoid alloc of Transform.Enumerator
Children are now retrieved using a combination of childCount and GetChild method
2022-05-09 19:47:02 +01:00
Oliver Booth 4d19e2f64c
Add Vector.With* methods (resolves #56) 2022-05-09 10:33:21 +01:00
Oliver Booth d904daf431
Add Color.With* methods (resolves #55) 2022-05-09 10:01:03 +01:00
Oliver Booth df0257f498
Add GameObject.SetLayerRecursively (#57) 2022-05-08 22:37:03 +01:00
Oliver Booth aa30abea93
Add Color.Inverted (#54) 2022-05-08 19:52:49 +01:00
Oliver Booth 051406c279
Fix xmldoc to reference Vector3.magnitude not .Length() 2022-05-08 00:07:07 +01:00
Oliver Booth 60a3459663
Add GetComponentsInChildrenOnly<T> 2022-05-08 00:06:39 +01:00
Oliver Booth f257aebc28
Add .NET Standard 2.1 target, reintroduce Unity support 2022-05-05 18:00:38 +01:00
Oliver Booth f9b4c56f05 Remove X10D.Unity project from repo 2022-02-14 16:50:07 +00:00
Oliver Booth 6e6d6c48fb
(#14) Declare using directives outside of namespace 2021-07-19 12:48:58 +01:00
Oliver Booth 8059b067c9
Remove BetterBehavior and GameTime types 2021-07-19 12:39:07 +01:00
Oliver Booth 5bc71bd426 Add X10D.Unity 2020-07-15 14:33:40 +01:00