Compare commits
2 Commits
4543048f36
...
1d53af4b46
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d53af4b46 | |||
| 94b37d02d5 |
@@ -1,33 +0,0 @@
|
||||
name: Generate Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 10.0.x
|
||||
|
||||
- name: Install DocFX
|
||||
run: dotnet tool install -g docfx
|
||||
|
||||
- name: Build Project
|
||||
run: dotnet build -c Release
|
||||
|
||||
- name: Generate Docs
|
||||
run: |
|
||||
docfx init -q
|
||||
docfx docfx.json
|
||||
|
||||
- name: Upload Docs
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: docs
|
||||
path: _site
|
||||
@@ -4,6 +4,13 @@ namespace SJK.Math;
|
||||
|
||||
public static class SJKMath
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the max number in a array of values.
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="values"></param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="ArgumentException"></exception>
|
||||
public static T Max<T>(params T[] values) where T : INumber<T>
|
||||
{
|
||||
if (values.Length == 0)
|
||||
|
||||
Reference in New Issue
Block a user