Skip to content

Commit c9e57f2

Browse files
committed
Merge branch 'feature/math-3.0' of https://github.com/Tweety-Lab/Silk.NET into feature/math-3.0
2 parents d5a8b54 + 4f74ab3 commit c9e57f2

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

sources/Maths/Maths/Vector2F.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ public static explicit operator System.Numerics.Vector2(Vector2F<T> v) =>
445445
public static Vector2F<T> operator -(Vector2F<T> vector) =>
446446
new(-vector.X, -vector.Y);
447447

448-
// IBinaryFloatingPointIeee754
448+
// IFloatingPointIeee754
449449
public static Vector2F<T> Sqrt(Vector2F<T> x) =>
450450
new(T.Sqrt(x.X), T.Sqrt(x.Y));
451451

sources/Maths/Maths/Vector2I.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections;
66
using System.Diagnostics.CodeAnalysis;
77
using System.Numerics;
8+
using System.Runtime.CompilerServices;
89
using System.Runtime.InteropServices;
910
using System.Text;
1011

@@ -212,6 +213,7 @@ public void CopyTo(Span<T> span, int startIndex)
212213
{
213214
if (startIndex < 0 || startIndex + 2 > span.Length)
214215
throw new ArgumentOutOfRangeException(nameof(startIndex));
216+
215217
span[startIndex] = X;
216218
span[startIndex + 1] = Y;
217219
}

sources/Maths/Maths/Vector3I.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections;
66
using System.Diagnostics.CodeAnalysis;
77
using System.Numerics;
8+
using System.Runtime.CompilerServices;
89
using System.Runtime.InteropServices;
910
using System.Text;
1011

0 commit comments

Comments
 (0)