Commit Graph

1187 Commits

Author SHA1 Message Date
Oliver Booth 9f9e5c7461 (#7) Move EnumExtensions to child namespace 2021-03-10 10:52:18 +00:00
Oliver Booth 60ebcedcb6 (#7) Move sysnumerics Vector3 to child namespace
Avoids collision when importing both X10D.RandomExtensions and
X10D.Unity.RandomExtensions
2021-03-10 10:51:05 +00:00
Oliver Booth a32fe8cc4a (#35) Add Random.NextRotationUniform 2021-03-10 10:49:55 +00:00
Oliver Booth cb7673c9a4 (#35) Add Random.NextRotation 2021-03-10 10:10:22 +00:00
Oliver Booth 72e24aa791 (#35) Add Random.NextUnitVector3 2021-03-09 18:03:32 +00:00
Oliver Booth f05e8537bd (#35) Add Random.NextUnitVector2
Returns a point which lies on the unit circle
2021-03-09 17:36:55 +00:00
Oliver Booth 6860afd4f9 Pass parameter name as 1st arg to ArgOutOfRangeEx 2021-03-09 17:14:34 +00:00
Oliver Booth dcf9ed938b (#19) Don't split partial leaving empty class 2021-03-09 17:09:40 +00:00
Oliver Booth 429d7990e8 (#35) Add missing using directive
Color belongs to System.Drawing namespace
2021-03-09 17:00:51 +00:00
Oliver Booth c584b9c331 Fix CA1829 on internal array
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1829
2021-03-09 16:59:50 +00:00
Oliver Booth 95fda962ed (#35) Add Random.NextColor 2021-03-09 16:56:42 +00:00
Oliver Booth 89ce281656 Fix xmldoc for NextDouble(double)
No minValue parameter, reference was invalid
2021-03-09 16:45:48 +00:00
Oliver Booth 8a168f0ff0 (#37) Add Random.NextInt64
Uses an internal Random instance to generate a second sample which is
OR'd with the first to produce a 64-bit integer
2021-03-09 13:18:12 +00:00
Oliver Booth 9d0c300250 Fix xmldoc and using directive
- <see cref="Random"/> points to internal instance, not type
- System.Globalization required for CultureInfo
2021-03-09 13:14:29 +00:00
Oliver Booth 013e633fce (#33) Add NextDouble overload with implied lbound
Behaves similar to Random.Next(int) where lower bound defaults to 0
2021-03-09 11:52:33 +00:00
Oliver Booth e05873f383 Use InvariantCulture for char.ToString() 2021-03-09 11:46:29 +00:00
Oliver Booth 0d00dd62e8 (#27) Move string literal ex msg to resource file 2021-03-09 11:45:19 +00:00
Oliver Booth 7d1dbee0dc (#36) Fix incorrect bound descriptor
Protip: Don't rush your documentation, kids!
2021-03-08 18:47:47 +00:00
Oliver Booth 3230b12f12 (#36) Fix parameter clusivity 2021-03-08 18:46:55 +00:00
Oliver Booth 41d09695e0 (#7) Move Double/Single to child namespace 2021-03-07 22:13:55 +00:00
Oliver Booth defa8cb890 (#34) Add Random.NextSingle([float, float]) 2021-03-07 18:28:09 +00:00
Oliver Booth c4e890f2cb Explicitly validate arguments
Delegating validation to another class caused warnings due to the
compiler not being aware of the null check
2021-03-07 18:15:58 +00:00
Oliver Booth 9bcd1eabce (#7) Move CharExtensions to child namespace
- Deprecate Random methods in favour of RandomExtensions methods
2021-03-07 18:09:27 +00:00
Oliver Booth 163b304ad1 Do not aggressively inline methods 2021-03-07 18:06:28 +00:00
Oliver Booth 3bceffb4cf Add solution-wide items to sln instead of csproj 2021-03-07 18:04:52 +00:00
Oliver Booth 905bad1ffa (#14) Remove whitespace on line spacing 2021-03-07 18:02:32 +00:00
Oliver Booth 937d701d14 Remove ruleset and unused analyzers 2021-03-07 18:00:17 +00:00
Oliver Booth 7c4ad9993e Enforce 130 character length limit 2021-03-07 17:55:11 +00:00
Oliver Booth c0425d0afd Add spacing between method declarations 2021-03-07 17:52:02 +00:00
Oliver Booth 9ebff198a0 (#33) Add Random.NextDouble(double, double) 2021-03-07 16:00:54 +00:00
Oliver Booth 34cead7e02 Add Random.NextString(IReadOnlyList<char>, int) 2021-03-07 14:20:30 +00:00
Oliver Booth a401aabee8 Add Random.Next<T>() where T : Enum 2021-03-07 14:20:01 +00:00
Oliver Booth fc96840e9d (#15) Remove "returns" from <returns> 2021-03-07 14:14:14 +00:00
Oliver Booth 4ff9cb4405 (#15) Surround possible return values with <para> 2021-03-07 12:04:46 +00:00
Oliver Booth 01a2df21d4 Remove SuppressMessage from ToGetParameters 2021-03-07 12:03:24 +00:00
Oliver Booth 6bc60d2a3a (#15) Indent </code> in XMLdoc for Random<T> 2021-03-07 12:01:37 +00:00
Oliver Booth f073c13f03 (#7) (#15) IEnumerable<byte> -> IROList<byte>
- GetString renamed to ToString
- No longer has optional Encoding parameter
2021-03-07 11:56:52 +00:00
Oliver Booth 4d31eee600 (#28) (#29) Use Span where possible
- Delegate argument validation to Validate class
- Fix ReadDecimal
- Add Write(decimal)
2021-03-06 17:27:34 +00:00
Oliver Booth 88244def34 (#7) Move Int64Extensions to child namespace 2021-03-04 01:37:02 +00:00
Oliver Booth f2b37962d6 (#7) Move Int16Extensions to child namespace 2021-03-04 01:36:35 +00:00
Oliver Booth 39dd2158de (#7) Move Int32Extensions to child namespace 2021-03-04 01:35:59 +00:00
Oliver Booth ab08b1c1c0 (#7) Move EnumerableExtensions to child namespace 2021-03-03 23:06:10 +00:00
Oliver Booth 36710253c4 (#31) Fix center-alignment on badges 2021-03-03 22:29:43 +00:00
Oliver Booth d8263c44dd (#31) Reduce spacing between badges 2021-03-03 22:28:36 +00:00
Oliver Booth 7444f59093 (#31) Fix formatting on tagline
HTML encapsulation requires HTML formatting
2021-03-03 22:27:09 +00:00
Oliver Booth 48c2a678fc (#31) Fix center alignment
As attempted by 8fb0447dde
2021-03-03 22:25:56 +00:00
Oliver Booth 21f8e090f6 (#31) Revert back to default shield style 2021-03-03 22:21:56 +00:00
Oliver Booth 8fb0447dde (#31) Center-align header and shields 2021-03-03 22:19:59 +00:00
Oliver Booth 732e29b1c5 (#31) Single-line title and subtitle
Add a tagline
2021-03-03 22:19:31 +00:00
Oliver Booth 6f963c748b (#31) Use for-the-badge style shields 2021-03-03 22:16:32 +00:00