diff options
Diffstat (limited to 'Djup.Native/Types.cs')
| -rw-r--r-- | Djup.Native/Types.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Djup.Native/Types.cs b/Djup.Native/Types.cs index 572277f..478208f 100644 --- a/Djup.Native/Types.cs +++ b/Djup.Native/Types.cs @@ -1,3 +1,4 @@ +using System.Diagnostics; using System.Runtime.InteropServices; namespace Djup.Native; @@ -10,6 +11,9 @@ public struct Vec2 public Vec2(float x, float y) { + Debug.Assert(float.IsFinite(x)); + Debug.Assert(float.IsFinite(y)); + X = x; Y = y; } |
