diff --git a/src/Maths/Silk.NET.Maths/PublicAPI/net5.0/PublicAPI.Shipped.txt b/src/Maths/Silk.NET.Maths/PublicAPI/net5.0/PublicAPI.Shipped.txt index 703364ae3e..0f725026db 100644 --- a/src/Maths/Silk.NET.Maths/PublicAPI/net5.0/PublicAPI.Shipped.txt +++ b/src/Maths/Silk.NET.Maths/PublicAPI/net5.0/PublicAPI.Shipped.txt @@ -1246,6 +1246,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Pl static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Quaternion value) -> Silk.NET.Maths.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector2 value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector3 value) -> Silk.NET.Maths.Vector3D +static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector4 value) -> Silk.NET.Maths.Vector4D static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix3X2 value) -> System.Numerics.Matrix3x2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix4X4 value) -> System.Numerics.Matrix4x4 @@ -1253,6 +1254,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Plan static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Quaternion value) -> System.Numerics.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector2D value) -> System.Numerics.Vector2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector3D value) -> System.Numerics.Vector3 +static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.Vector2D.Abs(Silk.NET.Maths.Vector2D value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Add(Silk.NET.Maths.Vector2D left, Silk.NET.Maths.Vector2D right) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Clamp(Silk.NET.Maths.Vector2D value1, Silk.NET.Maths.Vector2D min, Silk.NET.Maths.Vector2D max) -> Silk.NET.Maths.Vector2D diff --git a/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-android/PublicAPI.Shipped.txt b/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-android/PublicAPI.Shipped.txt index 703364ae3e..0f725026db 100644 --- a/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-android/PublicAPI.Shipped.txt +++ b/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-android/PublicAPI.Shipped.txt @@ -1246,6 +1246,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Pl static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Quaternion value) -> Silk.NET.Maths.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector2 value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector3 value) -> Silk.NET.Maths.Vector3D +static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector4 value) -> Silk.NET.Maths.Vector4D static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix3X2 value) -> System.Numerics.Matrix3x2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix4X4 value) -> System.Numerics.Matrix4x4 @@ -1253,6 +1254,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Plan static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Quaternion value) -> System.Numerics.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector2D value) -> System.Numerics.Vector2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector3D value) -> System.Numerics.Vector3 +static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.Vector2D.Abs(Silk.NET.Maths.Vector2D value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Add(Silk.NET.Maths.Vector2D left, Silk.NET.Maths.Vector2D right) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Clamp(Silk.NET.Maths.Vector2D value1, Silk.NET.Maths.Vector2D min, Silk.NET.Maths.Vector2D max) -> Silk.NET.Maths.Vector2D diff --git a/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-ios/PublicAPI.Shipped.txt b/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-ios/PublicAPI.Shipped.txt index 703364ae3e..0f725026db 100644 --- a/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-ios/PublicAPI.Shipped.txt +++ b/src/Maths/Silk.NET.Maths/PublicAPI/net6.0-ios/PublicAPI.Shipped.txt @@ -1246,6 +1246,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Pl static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Quaternion value) -> Silk.NET.Maths.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector2 value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector3 value) -> Silk.NET.Maths.Vector3D +static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector4 value) -> Silk.NET.Maths.Vector4D static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix3X2 value) -> System.Numerics.Matrix3x2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix4X4 value) -> System.Numerics.Matrix4x4 @@ -1253,6 +1254,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Plan static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Quaternion value) -> System.Numerics.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector2D value) -> System.Numerics.Vector2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector3D value) -> System.Numerics.Vector3 +static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.Vector2D.Abs(Silk.NET.Maths.Vector2D value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Add(Silk.NET.Maths.Vector2D left, Silk.NET.Maths.Vector2D right) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Clamp(Silk.NET.Maths.Vector2D value1, Silk.NET.Maths.Vector2D min, Silk.NET.Maths.Vector2D max) -> Silk.NET.Maths.Vector2D diff --git a/src/Maths/Silk.NET.Maths/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt b/src/Maths/Silk.NET.Maths/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt index 703364ae3e..0f725026db 100644 --- a/src/Maths/Silk.NET.Maths/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt +++ b/src/Maths/Silk.NET.Maths/PublicAPI/netcoreapp3.1/PublicAPI.Shipped.txt @@ -1246,6 +1246,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Pl static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Quaternion value) -> Silk.NET.Maths.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector2 value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector3 value) -> Silk.NET.Maths.Vector3D +static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector4 value) -> Silk.NET.Maths.Vector4D static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix3X2 value) -> System.Numerics.Matrix3x2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix4X4 value) -> System.Numerics.Matrix4x4 @@ -1253,6 +1254,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Plan static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Quaternion value) -> System.Numerics.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector2D value) -> System.Numerics.Vector2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector3D value) -> System.Numerics.Vector3 +static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.Vector2D.Abs(Silk.NET.Maths.Vector2D value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Add(Silk.NET.Maths.Vector2D left, Silk.NET.Maths.Vector2D right) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Clamp(Silk.NET.Maths.Vector2D value1, Silk.NET.Maths.Vector2D min, Silk.NET.Maths.Vector2D max) -> Silk.NET.Maths.Vector2D diff --git a/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt b/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt index 703364ae3e..0f725026db 100644 --- a/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt +++ b/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt @@ -1246,6 +1246,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Pl static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Quaternion value) -> Silk.NET.Maths.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector2 value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector3 value) -> Silk.NET.Maths.Vector3D +static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector4 value) -> Silk.NET.Maths.Vector4D static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix3X2 value) -> System.Numerics.Matrix3x2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix4X4 value) -> System.Numerics.Matrix4x4 @@ -1253,6 +1254,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Plan static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Quaternion value) -> System.Numerics.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector2D value) -> System.Numerics.Vector2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector3D value) -> System.Numerics.Vector3 +static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.Vector2D.Abs(Silk.NET.Maths.Vector2D value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Add(Silk.NET.Maths.Vector2D left, Silk.NET.Maths.Vector2D right) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Clamp(Silk.NET.Maths.Vector2D value1, Silk.NET.Maths.Vector2D min, Silk.NET.Maths.Vector2D max) -> Silk.NET.Maths.Vector2D diff --git a/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt b/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt index 703364ae3e..0f725026db 100644 --- a/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt +++ b/src/Maths/Silk.NET.Maths/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt @@ -1246,6 +1246,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Pl static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Quaternion value) -> Silk.NET.Maths.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector2 value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector3 value) -> Silk.NET.Maths.Vector3D +static Silk.NET.Maths.SystemNumericsExtensions.ToGeneric(this System.Numerics.Vector4 value) -> Silk.NET.Maths.Vector4D static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix3X2 value) -> System.Numerics.Matrix3x2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Matrix4X4 value) -> System.Numerics.Matrix4x4 @@ -1253,6 +1254,7 @@ static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Plan static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Quaternion value) -> System.Numerics.Quaternion static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector2D value) -> System.Numerics.Vector2 static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector3D value) -> System.Numerics.Vector3 +static Silk.NET.Maths.SystemNumericsExtensions.ToSystem(this Silk.NET.Maths.Vector4D value) -> System.Numerics.Vector4 static Silk.NET.Maths.Vector2D.Abs(Silk.NET.Maths.Vector2D value) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Add(Silk.NET.Maths.Vector2D left, Silk.NET.Maths.Vector2D right) -> Silk.NET.Maths.Vector2D static Silk.NET.Maths.Vector2D.Clamp(Silk.NET.Maths.Vector2D value1, Silk.NET.Maths.Vector2D min, Silk.NET.Maths.Vector2D max) -> Silk.NET.Maths.Vector2D diff --git a/src/Maths/Silk.NET.Maths/SystemNumericsExtensions.cs b/src/Maths/Silk.NET.Maths/SystemNumericsExtensions.cs index c82b409d65..3c15e8a89b 100644 --- a/src/Maths/Silk.NET.Maths/SystemNumericsExtensions.cs +++ b/src/Maths/Silk.NET.Maths/SystemNumericsExtensions.cs @@ -66,7 +66,7 @@ public static System.Numerics.Vector3 ToSystem(this Vector3D value) /// /// The source vector /// The converted vector - public static System.Numerics.Vector4 ToSystem(Vector4D value) + public static System.Numerics.Vector4 ToSystem(this Vector4D value) => new(value.X, value.Y, value.Z, value.W); /// @@ -127,7 +127,7 @@ public static Vector3D ToGeneric(this System.Numerics.Vector3 value) /// /// The source vector /// The converted vector - public static Vector4D ToGeneric(System.Numerics.Vector4 value) + public static Vector4D ToGeneric(this System.Numerics.Vector4 value) => new(value.X, value.Y, value.Z, value.W); } -} \ No newline at end of file +}